AntdUiConfig
SourceClass to store current antd config created by AntdUiProvider.
To get the current config use useAntdUiConfig.
API
Constructor
new AntdUiConfig(components)
Source| Parameter | Type | Description | |
|---|---|---|---|
| components.DatePicker | DatePickerComponent | The DatePicker component to use. This can be DatePicker or an alternative as described in the replace moment.js documentation. | |
| components.TimePicker | TimePickerComponent | The TimePicker component to use. This can be TimePicker or an alternative as described in the replace moment.js documentation. |
Methods
getDatePicker()
SourceGet the DatePicker component to use. This is used by all date/datetime based widgets (eg. DateWidget).
DatePickerComponent
This returns the datePickerComponent passed to AntdUiProvider or throws an error if no datePickerComponent has been defined.
getTimePicker()
SourceGet the TimePicker component to use. This is used by all time based widgets (eg. TimeWidget).
DatePickerComponent
This returns the timePickerComponent passed to AntdUiProvider or throws an error if no timePickerComponent has been defined.
Properties
components: AntdUiConfigComponents
| Key | Type | Description | |
|---|---|---|---|
| DatePicker | DatePickerComponent | The DatePicker component to use. This can be DatePicker or an alternative as described in the replace moment.js documentation. | |
| TimePicker | TimePickerComponent | The TimePicker component to use. This can be TimePicker or an alternative as described in the replace moment.js documentation. |