DatePicker
Container properties
All component configurations support Container properties at the first level.
Component properties
| Name | Type | Default | Supports Variable Pattern | Description |
|---|---|---|---|---|
| className | string | ✔️ | The className of the component | |
| style | object | The style of the component | ||
| noTimeZone | bool | false | Whether to remove the date time zone information when onChange | |
| showTime | bool | object | false | Whether to display time | |
| formatOptions | object | All properties of Intl.DateTimeFormat | ||
| disabledDate | DisabledDate | Disable certain dates when selecting dates |
All the remaining componentsProps will be passed to the component root element(DatePicker)。
DisabledDate
| Name | Type | Default | Description |
|---|---|---|---|
| type | 'before' | 'after' | 'inRange' | 'outRange' | Forbidden Type | |
| includeValue | bool | false | If true, the day of value(valueFrom, valueTo) itself is disabled |
| value | 'today' | 'tomorrow' | 'yesterday' | number | string | When type is equal to the prohibited date before or after, string represents the specific date, and number represents the offset based on the date of the day. | |
| valueOffset | number | You can specify valueOffset to move forward or backward as an offset value | |
| valueFrom | 'today' | 'tomorrow' | 'yesterday' | number | string | When type is equal to inRange or outRange, string represents the specific date, and number represents the offset based on the date of the day. | |
| valueFromOffset | number | You can specify valueFromOffset as an offset to move forward or backward valueFrom | |
| valueTo | 'today' | 'tomorrow' | 'yesterday' | number | string | When type is equal to inRange or outRange, string represents the specific date, and number represents the offset based on the date of the day. | |
| valueToOffset | number | You can specify valueToOffset as an offset to move forward or backward valueFrom |
JS API
The interface obtained through formApi.getFieldApi() is as follows:
| Name | Type | Description |
|---|---|---|
| node | HTML Element | Component root DOM element |