| | |
| | | render: function() { |
| | | return DOM.div({ className: 'rdtMonths' },[ |
| | | DOM.table({ key: 'a'}, DOM.thead({}, DOM.tr({},[ |
| | | DOM.th({ key: 'prev', className: 'prev', onClick: this.props.subtractTime(1, 'years') }, '‹'), |
| | | DOM.th({ key: 'year', className: 'switch', onClick: this.props.showView('years'), colSpan: 5 }, this.props.viewDate.year() ), |
| | | DOM.th({ key: 'next', className: 'next', onClick: this.props.addTime(1, 'years')}, '›' ) |
| | | DOM.th({ key: 'prev', className: 'prev' }, DOM.button({onClick: this.props.subtractTime(1, 'years')}, '‹')), |
| | | DOM.th({ key: 'year', className: 'switch', onClick: this.props.showView('years'), colSpan: 2 }, this.props.viewDate.year() ), |
| | | DOM.th({ key: 'next', className: 'next' }, DOM.button({onClick: this.props.addTime(1, 'years')}, '›')) |
| | | ]))), |
| | | DOM.table({ key: 'months'}, DOM.tbody({ key: 'b'}, this.renderMonths())) |
| | | ]); |