New to KendoReactStart a free 30-day trial

DateInputProps

Represents the props of the KendoReact DateInput component. The generic argument is passed to the onChange property and is used as a target in the DateInputChangeEvent interface.

NameTypeDefaultDescription

allowCaretMode?

boolean

false

Determines if the users should see a blinking caret inside the Date Input when possible.

ariaControls?

string

Identifies the element whose contents or presence are controlled by the current element.

ariaDescribedBy?

string

Identifies the element(s) which will describe the component, similar to HTML aria-describedby attribute. For example these elements could contain error or hint message.

ariaExpanded?

boolean

Indicates whether the element is currently expanded or collapsed.

ariaHasPopup?

boolean | "dialog" | "grid"

grid

Indicates the availability of interactive popup element that can be triggered by an element. By default the property is set to grid.

ariaLabel?

string

The accessible label of the component.

ariaLabelledBy?

string

Identifies the element(s) which will label the component.

ariaRole?

string

Specifies the role of the DateInput.

autoCorrectParts?

boolean

true

Determines whether to autocorrect invalid segments automatically.

autoFill?

boolean

false

When enabled, the DateInput will autofill the rest of the date to the current date when the component loses focus.

autoFocus?

boolean

false

Represents the autoFocus HTML attribute that will be applied to the input element of the DateInput. (Defaults to false)

autoSwitchKeys?

string[]

[]

A string array representing custom keys, which will move the focus to the next date format segment.

autoSwitchParts?

boolean

true

Determines whether to automatically move to the next segment after the user completes the current one.

className?

string

Sets a class of the DateInput DOM element.

clearButton?

boolean

If clearButton is set to true, the DateInput renders a button next to the date value. Clicking this button resets the value of the date and triggers the change event.

defaultValue?

"null" | Date

Specifies the default value of the DateInput. If value is not set, this value will correspond to the initial value.

dir?

string

Represents the dir HTML attribute.

disabled?

boolean

Determines whether the DateInput is disabled (see example).

enableMouseWheel?

boolean

true

Indicates whether the mouse scroll can be used to increase/decrease the date segments values.

fillMode?

"null" | "flat" | "solid" | "outline"

solid

Configures the fillMode of the DateInput.

The available options are:

  • solid
  • outline
  • flat
  • null—Does not set a fillMode className.

format?

string | DateFormatOptions

Specifies the date format which is used for formatting the value (see example). If not set, the default format will be used.

formatPlaceholder?

DateInputFormatPlaceholder

Specifies the descriptions of the format sections in the input field (more information and example).

id?

string

Sets the id of the input DOM element.

label?

string

Renders a floating label for the DateInput.

max?

Date

Specifies the greatest date that is valid (see example).

maxTime?

Date

Specifies the greatest time that is valid (see example).

min?

Date

Specifies the smallest date that is valid (see example).

minTime?

Date

Specifies the smallest time that is valid (see example).

name?

string

Specifies the name property of the input DOM element.

This property is part of the FormComponentProps interface.

onChange?

(event: DateInputChangeEvent<T>) => void

Determines the event handler that will be fired when the user edits the value (see example).

placeholder?

"null" | string

Specifies the hint the DateInput displays when its value is null or there is no partial selection. For more information, refer to the article on placeholders.

readonly?

boolean

Determines whether the DateInput is in its read-only state.

required?

boolean

Specifies if null is a valid value for the component.

This property is part of the FormComponentProps interface.

rounded?

"null" | "small" | "large" | "medium" | "full"

medium

Configures the roundness of the DateInput.

The available options are:

  • small
  • medium
  • large
  • full
  • null—Does not set a rounded className.

size?

"null" | "small" | "large" | "medium"

medium

Configures the size of the DateInput.

The available options are:

  • small
  • medium
  • large
  • null—Does not set a size className.

spinners?

boolean

Specifies whether the Up and Down spin buttons will be rendered (see example).

steps?

DateInputIncrementalSteps

Specifies the incremental steps of the DateInput (see example).

The available options are:

  • year: Number—Controls the incremental step of the year value.
  • month: Number—Controls the incremental step of the month value.
  • day: Number—Controls the incremental step of the day value.
  • hour: Number—Controls the incremental step of the hour value.
  • minute: Number—Controls the incremental step of the minute value.
  • second: Number—Controls the incremental step of the second value.

tabIndex?

number

Sets the tabIndex property of the DateInput.

title?

string

Sets the title of the input element of the DateInput.

twoDigitYearMax?

number

68

The maximum year to assume to be from the current century when typing two-digit year value (see example). The default value of 68, indicating that typing any value less than 69 will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.

valid?

boolean

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

This property is part of the FormComponentProps interface.

validationMessage?

string

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

This property is part of the FormComponentProps interface.

validityStyles?

boolean

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

This property is part of the FormComponentProps interface.

value?

"null" | Date

Specifies the value of the DateInput.

width?

string | number

Specifies the width of the DateInput.

Not finding the help you need?
Contact Support