InputDate
Extends:
react~Component → InputDate
InputDate is a component showing calendar picker using react-datepicker library
Access
Stage.Basic.Form.InputDate
Usage

<Form.InputDate name='endDate' value={this.state.endDate}
onChange={this._handleCustomInputChange.bind(this)}
startDate={this.state.startDate}
endDate={this.state.endDate}
maxDate={moment()} />
Static Member Summary
| Static Public Members | ||
| public static |
propTypes: * propTypes |
|
Static Public Members
public static propTypes: * source
propTypes
Properties:
| Name | Type | Attribute | Description |
| name | string | name of the field |
|
| value | object |
|
MomentJS object with date to be selected on the picker |
| onChange | Function |
|
function (selectedDateMoment, {name, value}) called on calendar date change |
| minDate | object |
|
MomentJS object with min allowed date on the picker |
| maxDate | object |
|
MomentJS object with max allowed date on the picker |
| startDate | object |
|
MomentJS object for start range date (used when two InputDate components are used to display date range) |
| endDate | object |
|
MomentJS object for end range date (used when two InputDate components are used to display date range) |
| timeIntervals | string |
|
interval (in minutes) between time options |
Manual
Reference
Source
