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. | |
animateCalendarNavigation |
|
|
Determines whether to enable animation when navigating to previous/next Calendar view.
Applies to the
|
bottomView |
|
Defines the bottommost Calendar view to which the user can navigate (see example). | |
calendarType |
|
Specifies the Calendar type. The possible values are:
| |
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). | |
fillMode |
|
Sets the fillMode of the component. The possible values are:
| |
focusedDate |
|
Specifies the focused date of the Calendar component (see example). | |
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).
| |
incompleteDateValidation |
|
Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated. | |
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
| |
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:
| |
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 | |
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. This event is preventable. If you cancel the event, the popup will remain open (more information and example). |
blur |
|
Fires each time the input element gets blurred (more information and example).
|
focus |
|
Fires each time the user focuses the input element (more information and example).
|
open |
|
Fires each time the popup is about to open. This event is preventable. If you cancel the event, the popup will remain closed (more information and example). |
valueChange |
|
Fires each time the user selects a new value (more information and example). |
Methods
blur |
---|
Blurs the DatePicker component. |
focus |
---|
Focuses the DatePicker component.
|
toggle | ||||||
---|---|---|---|---|---|---|
Toggles the visibility of the popup or actionSheet.
If you use the | ||||||
|