Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <DateRangePicker
- startDate={this.state.startDate} // momentPropTypes.momentObj or null,
- orientation={HORIZONTAL_ORIENTATION}
- startDateId="your_unique_start_date_id" // PropTypes.string.isRequired,
- endDate={this.state.endDate} // momentPropTypes.momentObj or null,
- endDateId="your_unique_end_date_id" // PropTypes.string.isRequired,
- onDatesChange={({ startDate, endDate }) => this.getDataWithDate(startDate, endDate)} // PropTypes.func.isRequired,
- focusedInput={this.state.focusedInput} // PropTypes.oneOf([START_DATE, END_DATE]) or null,
- onFocusChange={focusedInput => this.setState({ focusedInput })} // PropTypes.func.isRequired,
- isOutsideRange={() => false
- }
- />
Add Comment
Please, Sign In to add comment