import React from 'react'; import { Row, Col } from 'react-bootstrap'; import { Card, YearPicker, MonthYearPicker } from '../../components/index'; /** * Example of how to use the year picker and month-year picker control */ export default class ReacttableExample extends React.Component { constructor(props) { super(props); this.yearChange = this.yearChange.bind(this); this.yearChange2 = this.yearChange2.bind(this); this.monthYearChange = this.monthYearChange.bind(this); this.state = { }; } yearChange(val) { this.setState({ year: val }); } yearChange2(val) { this.setState({ endYear: val }); } monthYearChange(prop) { return val => { const obj = {}; obj[prop] = val; console.log(prop + ' = ', val); this.setState(obj); }; } render() { return (
); } }