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
| ||
animateCalendarNavigation | boolean | (default: false) | 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 | boolean | Sets or gets the | |
disabledDatesValidation | boolean | Determines whether the built-in validator for disabled date ranges is enforced when validating a form (see example). | |
focusedDate | Date | Specifies the focused date of the Calendar component (see example). | |
format | string | FormatSettings | 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 | boolean | Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated. | |
max | Date | Specifies the biggest valid date
(see example).
By default, the | |
min | Date | Specifies the smallest valid date
(see example).
By default, the | |
navigation | boolean | Sets or gets the | |
placeholder | string | Specifies the hint the DatePicker displays when its value is
| |
rangeValidation | boolean | Determines whether the built-in min or max validators are enforced when validating a form. | |
readOnlyInput | boolean | Sets the read-only state of the DatePicker input field (see example).
| |
readonly | boolean | Sets the read-only state of the DatePicker (see example). | |
tabindex | number | Sets or gets the | |
title | string | Sets the title of the input element of the DatePicker. | |
topView | Defines the topmost Calendar view to which the user can navigate (see example). | ||
twoDigitYearMax | number | 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. | |
weekNumber | boolean | Determines whether to display a week number column in the | |
disabledDates | Date[] | Day[] | (date: Date) => boolean | Sets the dates of the DatePicker that will be disabled (see example). | |
fillMode | Sets the fillMode of the component. The possible values are:
| ||
popupSettings | Configures the popup options of the DatePicker. The available options are:
| ||
rounded | Sets the border radius of the component. The possible values are:
| ||
size | Sets the size of the component. The possible values are:
| ||
value | Date | Specifies the value of the DatePicker component.
|
Fields
NAME | TYPE | DEFAULT | DESCRIPTION |
---|---|---|---|
isOpen | boolean | Returns the current open state of the popup. |
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 | EventEmitter<any> | Fires each time the input element gets blurred (more information and example).
|
focus | EventEmitter<any> | 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 | EventEmitter<Date> | 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. If you use the |
Parameters | ||
---|---|---|
show? | boolean | The state of the popup. |