DateTimePickerComponent
Represents the Kendo UI DateTimePicker component for Angular.
Selector
kendo-datetimepicker
Export Name
Accessible in templates as #kendoDateTimePickerInstance="kendo-datetimepicker"
Inputs
NAME | TYPE | DEFAULT | DESCRIPTION |
---|---|---|---|
animateCalendarNavigation | boolean | (default: false) | Determines whether to enable animation when navigating to previous/next Calendar view.
Applies to the
|
calendarType | Specifies the Calendar type. The possible values are:
| ||
cancelButton | boolean | Determines whether to display the Cancel button in the popup (see example). | |
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 popup Calendar (see example). | |
formatPlaceholder | Defines the descriptions of the format sections in the input field (see example). | ||
incompleteDateValidation | boolean | Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated. | |
placeholder | string | Specifies the hint which is displayed by the DateTimePicker when its value is | |
rangeValidation | boolean | Determines whether the built-in min or max validators are enforced when validating a form (see example). | |
readOnlyInput | boolean | Sets the read-only state of the DateTimePicker input field (see example).
| |
readonly | boolean | Sets the read-only state of the DateTimePicker (see example). | |
steps | Configures the incremental steps of the DateInput and the popup component of the TimePicker (see example). | ||
title | string | Sets the title of the input element of the DateTimePicker. | |
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 | |
defaultTab | Sets the active tab on opening the popup (see example). | ||
disabledDates | Date[] | Day[] | (date: Date) => boolean | Sets the dates of the DateTimePicker that will be disabled (see example). | |
fillMode | Sets the fillMode of the component. The possible values are:
| ||
format | string | FormatSettings | Specifies the date format for displaying the input value (see example) Format value options:
| |
max | Date | Specifies the biggest valid date.
The Calendar will not display dates after this value.
If the | |
min | Date | Specifies the smallest valid date.
The Calendar will not display dates before this value.
If the | |
popupSettings | Configures the popup settings of the DateTimePicker (see example). 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:
| ||
tabindex | number | Specifies the | |
value | Date | Specifies the value of the DateTimePicker component.
|
Fields
NAME | TYPE | DEFAULT | DESCRIPTION |
---|---|---|---|
isActive | boolean | Indicates whether the component or its popup content is focused. | |
isOpen | boolean | Indicates whether the component is currently open. |
Events
NAME | TYPE | DESCRIPTION |
---|---|---|
close | Fires each time the popup is about to close.
This event is preventable. If you cancel the event by setting | |
blur | EventEmitter<any> | Fires each time the user blurs the component. (more information and example). |
focus | EventEmitter<any> | Fires each time the user focuses the component. (more information and example). |
open | Fires each time the popup is about to open.
This event is preventable. If you cancel the event by setting | |
valueChange | EventEmitter<Date> | Fires each time the user selects a new value. (more information and example). |
Methods
blur |
---|
Blurs the DateTimePicker. |
focus |
---|
|
toggle | ||
---|---|---|
Toggles the visibility of the popup. If you use the |
Parameters | ||
---|---|---|
show? | boolean | The state of the popup. |