DateInputComponent
Represents the Kendo UI DateInput component for Angular.
<kendo-dateinput/>
Selector
kendo-dateinput
Export Name
Accessible in templates as #kendoDateInputInstance="kendo-dateinput"
Inputs
Name | Type | Default | Description |
---|---|---|---|
allowCaretMode |
|
|
Specifies if the component displays a blinking caret inside the DateInput when possible.
Set to |
autoCorrectParts |
|
|
Specifies if the component automatically corrects invalid date segments.
When set to |
autoFill |
|
|
Specifies whether to autofill the rest of the date to the current date when the component loses focus. |
autoSwitchKeys |
|
Specifies custom keys that move focus to the next date format segment. Provide an array of strings to define which keys trigger the focus change. | |
autoSwitchParts |
|
|
Specifies if the component automatically moves to the next segment after you complete the current one.
When set to |
clearButton |
|
|
Specifies whether to render a clear button after the input text or DateInput value has been changed.
Clicking this button resets the value of the component to |
disabled |
|
|
Specifies whether the component is disabled (see example). To learn how to disable the component in reactive forms, refer to the article on Forms Support. |
enableMouseWheel |
|
|
Indicates whether the mouse scroll can be used to increase/decrease the time segments values. |
fillMode |
|
|
Specifies the fillMode of the component. |
format |
|
Specifies the date format that is used to display the input value (see example). You can provide a string if a single format is going to be used regardless whether the input is focused or blurred. Alternatively, you can provide a FormatSettings object to display different formats when the component is focused or blurred by specifying inputFormat and displayFormat values. | |
formatPlaceholder |
|
Defines the descriptions of the format sections in the input field. For more information, refer to the article on placeholders. | |
incompleteDateValidation |
|
|
Specifies whether the built-in validation for incomplete dates is to be enforced when a form is being validated. |
inputAttributes |
|
Specifies 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). |
min |
|
|
Specifies the smallest date that is valid (see example). |
placeholder |
|
|
Specifies the hint the DateInput displays when its value is |
rangeValidation |
|
|
Specifies whether to enforce the built-in min and max validators when validating a form.
Set to |
readonly |
|
|
Specifies the read-only state of the DateInput (see example). |
rounded |
|
|
Specifies the border radius of the component. |
size |
|
|
Specifies the size of the component. |
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. | |
tabindex |
|
|
Specifies the |
title |
|
|
Specifies 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. The |
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. |