DateTimePickerProps

Represents the props of the KendoReact DateTimePicker component.

cancelButton? boolean

Determines whether to display the Cancel button in the popup.

className? string

Sets the className of the DateTimePicker.

defaultShow? boolean

Sets if the calendar popup is opened upon initial render. For more info about default values in uncontrolled state, please refer to the Uncontrolled Components article.

defaultValue? Date

Sets the default value of the DateTimePicker (see example). For more info about default values in uncontrolled state, please refer to the Uncontrolled Components article.

disabled? boolean

Determines whether the DateTimePicker is disabled (see example).

focusedDate? Date

Specifies the initial focusedDate of the Calendar inside the DateTimePicker (see example).

format? string

Specifies the date format that is used to display the input value (see example).

formatPlaceholder? DateInputFormatPlaceholder

Defines the descriptions of the format sections in the input field (more information and examples).

id? string

Specifies the id of the DateTimePicker.

max? Date

Specifies the greatest valid date (see example).

min? Date

Specifies the smallest valid date (see example).

name? string

Specifies the name property of the input DOM element.

onBlur? (event: FocusEvent<undefined>) => void

Fires each time any of the DateTimePicker elements gets blurred.

onChange? (event: DateTimePickerChangeEvent) => void

Fires each time the user selects a new value (see example).

onFocus? (event: FocusEvent<undefined>) => void

Fires each time the user focuses any of the DateTimePicker elements.

required? boolean

Specifies if null is a valid value for the component.

For runnable examples on forms support, refer to the documentation of the respective form component:

show? boolean

Specifies if the popup will be displayed (see example).

tabIndex? number

Sets the tabIndex property of the DateTimePicker.

title? string

Sets the title of the input element of the DateTimePicker.

valid? boolean

Overrides the validity state of the component. If valid is set, the required property will be ignored.

For runnable examples on forms support, refer to the documentation of the respective form component:

validationMessage? string

Controls the form error message of the component. If set to an empty string, no error will be thrown.

For runnable examples on forms support, refer to the documentation of the respective form component:

validityStyles? boolean

If set to false, no visual representation of the invalid state of the component will be applied.

For runnable examples on forms support, refer to the documentation of the respective form component:

value? Date | null

Specifies the value of the DateTimePicker (see example).

The value has to be a valid JavaScript Date instance.

weekNumber? boolean

Determines whether to display a week number column of the Calendar inside the DateTimePicker (see example).

width? number | string

Specifies the width of the DateTimePicker.

 /