DatePickerComponent
Represents the Kendo UI DatePicker component for Angular.
Selector
kendo-datepicker
Export Name
Accessible in templates as #kendoDatePickerInstance="kendo-datepicker"
Inputs
Name | Type | Default | Description |
---|---|---|---|
activeView |
|
Defines the active view that the Calendar initially renders
(see example).
By default, the active view is
| |
adaptiveMode |
|
Enables or disables the adaptive mode. By default the adaptive rendering is disabled. | |
allowCaretMode |
|
|
Determines if the users should see a blinking caret inside the Date Input when possible. |
animateCalendarNavigation |
|
|
Determines whether to enable animation when navigating to previous/next Calendar view.
Applies to the
|
autoCorrectParts |
|
|
Determines whether to autocorrect invalid segments automatically. |
autoFill |
|
|
When enabled, the DatePicker 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. |
bottomView |
|
Defines the bottommost Calendar view to which the user can navigate (see example). | |
calendarType |
|
Specifies the Calendar type. The possible values are:
| |
clearButton |
|
|
If set to |
disabled |
|
Sets or gets the | |
disabledDates |
|
Sets the dates of the DatePicker that will be disabled (see example). | |
disabledDatesValidation |
|
Determines whether the built-in validator for disabled date ranges is enforced when validating a form (see example). | |
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:
| |
focusedDate |
|
Specifies the focused date of the Calendar component (see example). | |
footer |
|
|
Toggles the visibility of the Calendar footer. |
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. (more information and examples). 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 valid date
(see example).
By default, the | |
min |
|
Specifies the smallest valid date
(see example).
By default, the | |
navigation |
|
Sets or gets the | |
placeholder |
|
Specifies the hint the DatePicker displays when its value is ts
| |
popupSettings |
|
Configures the popup options of the DatePicker. The available options are:
| |
rangeValidation |
|
Determines whether the built-in min or max validators are enforced when validating a form. | |
readonly |
|
|
Sets the read-only state of the DatePicker (see example). |
readOnlyInput |
|
Sets the read-only state of the DatePicker input field (see example).
the input will be rendered in a read-only state regardless of the | |
rounded |
|
Sets the border radius of the component. The possible values are:
| |
showOtherMonthDays |
|
Displays the days that fall out of the current month in the Calendar (see example). The default values per Calendar type are:
| |
size |
|
Sets the size of the component. The possible values are:
| |
subtitle |
|
Sets the subtitle text rendered in the header of the popup(action sheet).
Applicable only when | |
tabindex |
|
Sets or gets the | |
title |
|
Sets the title of the input element of the DatePicker and the title text rendered
in the header of the popup(action sheet). Applicable only when | |
topView |
|
Defines the topmost Calendar view to which the user can navigate (see example). | |
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 DatePicker component.
JavaScript | |
weekDaysFormat? |
|
|
Sets the format of the displayed Calendar week days' names. |
weekNumber |
|
Determines whether to display a week number column in the |
Fields
Name | Type | Default | Description |
---|---|---|---|
isOpen |
|
Indicates whether the component is currently open. That is when the popup or actionSheet is open. |
Events
Name | Type | Description |
---|---|---|
close |
|
Fires each time the popup is about to close (see example). This event is preventable. If you cancel the event, the popup will remain open. |
blur |
|
Fires each time the input element gets blurred (see example). |
focus |
|
Fires each time the user focuses the input element (see example). |
open |
|
Fires each time the popup is about to open (see example). This event is preventable. If you cancel the event, the popup will remain closed. |
valueChange |
|
Fires each time the user selects a new value (see example). |
Methods
blur |
---|
Blurs the DatePicker component. |
focus |
---|
Focuses the DatePicker component. ts
|
toggle | ||||||
---|---|---|---|---|---|---|
Toggles the visibility of the popup or actionSheet.
If you use the | ||||||
|