AntdUiConfig

Source
import { AntdUiConfig } from "@prestojs/ui-antd";

Class to store current antd config created by AntdUiProvider.

To get the current config use useAntdUiConfig.

API

new AntdUiConfig(components)

Source
ParameterTypeDescription
components.DatePickerDatePickerComponent

The DatePicker component to use. This can be DatePicker or an alternative as described in the replace moment.js documentation.

components.TimePickerTimePickerComponent

The TimePicker component to use. This can be TimePicker or an alternative as described in the replace moment.js documentation.

Methods

Get 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.

Get 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

KeyTypeDescription
DatePickerDatePickerComponent

The DatePicker component to use. This can be DatePicker or an alternative as described in the replace moment.js documentation.

TimePickerTimePickerComponent

The TimePicker component to use. This can be TimePicker or an alternative as described in the replace moment.js documentation.