DateInputComponent
Represents the Kendo UI DateInput component for Angular.
Selector
kendo-dateinput
Export Name
Accessible in templates as #kendoDateInputInstance="kendo-dateinput"
Inputs
Name | Type | Default | Description |
---|---|---|---|
allowCaretMode |
|
|
Determines if the users should see a blinking caret inside the Date Input when possible. |
autoCorrectParts |
|
|
Determines whether to autocorrect invalid segments automatically. |
autoFill |
|
|
When enabled, the DateInput will autofill the rest of the date to the current date when the component loses focus. |
autoSwitchKeys |
|
A string array representing custom keys, which will move the focus to the next date format segment. | |
autoSwitchParts |
|
|
Determines whether to automatically move to the next segment after the user completes the current one. |
clearButton |
|
|
If set to |
disabled |
|
Sets or gets the | |
enableMouseWheel |
|
|
Indicates whether the mouse scroll can be used to increase/decrease the time segments values. |
fillMode |
|
Sets the fillMode of the component. The possible values are:
| |
format |
|
Specifies the date format that is used to display the input value (see example). Format value options:
| |
formatPlaceholder |
|
Defines the descriptions of the format sections in the input field. For more information, refer to the article on placeholders. ts
| |
incompleteDateValidation |
|
Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated. | |
inputAttributes |
|
Sets the HTML attributes of the inner focusable input element. Attributes which are essential for certain component functionalities cannot be changed. | |
max |
|
Specifies the biggest date that is valid
(see example).
By default, the | |
min |
|
Specifies the smallest date that is valid
(see example).
By default, the | |
placeholder |
|
Specifies the hint the DateInput displays when its value is ts
| |
rangeValidation |
|
Determines whether the built-in min or max validators are to be enforced when a form is being validated. | |
readonly |
|
|
Sets or gets the read-only state of the DateInput (see example). |
rounded |
|
Sets the border radius of the component. The possible values are:
| |
size |
|
Sets the size of the component. The possible values are:
| |
spinners |
|
Specifies whether the Up and Down spin buttons will be rendered. For more information, refer to the article on spinner buttons. | |
steps |
|
Configures the incremental steps of the DateInput. For more information, refer to the article on incremental steps. ts
| |
tabindex |
|
Sets or gets the | |
title |
|
Sets the title of the input element of the DateInput. | |
twoDigitYearMax |
|
The maximum year to assume to be from the current century when typing two-digit year value (see example). The default value is 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. | |
value |
|
Specifies the value of the DateInput component.
|
Events
Name | Type | Description |
---|---|---|
blur |
|
Fires each time the input element gets blurred (see example). |
focus |
|
Fires each time the user focuses the input element (see example). |
valueChange |
|
Fires each time the user selects a new value (see example). |
Methods
blur |
---|
Blurs the DateInput component. |
focus |
---|
Focuses the DateInput component. ts
|