Skip to content

Commit

Permalink
Requires startDateId, endDateId on DateRangePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
iambenthompson authored and majapw committed Apr 12, 2018
1 parent daa2980 commit a5f1806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ Here is the minimum *REQUIRED* setup you need to get the `DateRangePicker` worki
```jsx
<DateRangePicker
startDate={this.state.startDate} // momentPropTypes.momentObj or null,
startDateId=// PropTypes.string.isRequired,
endDate={this.state.endDate} // momentPropTypes.momentObj or null,
endDateId=// PropTypes.string.isRequired,
onDatesChange={({ startDate, endDate }) => this.setState({ 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,
Expand All @@ -113,9 +115,7 @@ Here is the minimum *REQUIRED* setup you need to get the `DateRangePicker` worki
The following is a list of other *OPTIONAL* props you may provide to the `DateRangePicker` to customize appearance and behavior to your heart's desire. Again, please explore the [storybook](http://airbnb.io/react-dates/?selectedKind=DRP%20-%20Input%20Props&selectedStory=default&full=0&down=1&left=1&panelRight=0&downPanel=kadirahq%2Fstorybook-addon-actions%2Factions-panel) for more information on what each of these props do.
```js
// input related props
startDateId: PropTypes.string.isRequired,
startDatePlaceholderText: PropTypes.string,
endDateId: PropTypes.string.isRequired,
endDatePlaceholderText: PropTypes.string,
disabled: PropTypes.bool,
required: PropTypes.bool,
Expand Down

0 comments on commit a5f1806

Please sign in to comment.