Guest User

Untitled

a guest
Jul 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <DateRangePicker
  2. startDate={this.state.startDate} // momentPropTypes.momentObj or null,
  3. orientation={HORIZONTAL_ORIENTATION}
  4.  
  5. startDateId="your_unique_start_date_id" // PropTypes.string.isRequired,
  6. endDate={this.state.endDate} // momentPropTypes.momentObj or null,
  7. endDateId="your_unique_end_date_id" // PropTypes.string.isRequired,
  8. onDatesChange={({ startDate, endDate }) => this.getDataWithDate(startDate, endDate)} // PropTypes.func.isRequired,
  9. focusedInput={this.state.focusedInput} // PropTypes.oneOf([START_DATE, END_DATE]) or null,
  10. onFocusChange={focusedInput => this.setState({ focusedInput })} // PropTypes.func.isRequired,
  11. isOutsideRange={() => false
  12. }
  13. />
Add Comment
Please, Sign In to add comment