DateTimePickerProps
Represents the props of the Kendo UI for Vue DateTimePicker component.
Definition
Package:@progress/kendo-vue-dateinputs
Properties
ariaDescribedBy?
string
Sets the id values of the elements that describe the DateTimePicker, similar to the HTML aria-describedby attribute.
For example, these elements can contain an error or a hint message.
ariaLabelledBy?
string
Sets the id values of the elements that label the DateTimePicker.
calendar?
any
Lets you customize or replace the default Calendar of the DateTimePicker (see example).
cancelButton?
boolean
When you set it to true, the popup shows the Cancel button.
true
dateInput?
any
Lets you customize or replace the default DateInput of the DateTimePicker (see example).
defaultShow?
boolean
Sets whether the popup is open on the first render.
false
defaultValue?
Date
Sets the initial value of the DateTimePicker when you do not set value.
null
disabled?
boolean
When you set it to true, the DateTimePicker is disabled
(see example).
false
fillMode?
string
Configures the fillMode of the DateTimePicker.
The available options are:
- solid
- outline
- flat
- link
- null—Does not set a fillMode
class.
solid
focusedDate?
Date
Sets the initial focused date of the Calendar inside the DateTimePicker (see example).
format?
string | DateFormatOptions
Sets the date format that the DateTimePicker uses to show the input value (see example).
'g'
Sets the descriptions of the format sections in the input field (more information and examples).
id?
string
Sets the id of the input element of the DateTimePicker. The floating label uses it to point to the input.
inputAttributes?
Object
Sets the built-in HTML attributes of the inner focusable input element.
You cannot change the attributes that the component needs to work.
label?
string
Renders a floating label for the DateTimePicker.
max?
Date
Sets the latest valid date (see example).
maxTime?
Date
Sets the latest valid time.
min?
Date
Sets the earliest valid date (see example).
minTime?
Date
Sets the earliest valid time.
name?
string
Sets the name property of the input DOM element.
onBlur?
(event: any) => void
Fires each time any element of the DateTimePicker loses focus. The event name is blur.
onChange?
(event: DateTimePickerChangeEvent) => void
Fires each time the user selects a new value. The event name is change.
onFocus?
(event: any) => void
Fires each time the user focuses any element of the DateTimePicker. The event name is focus.
onIconclick?
(event: any) => void
Fires when the user clicks the calendar icon. The event name is iconclick.
placeholder?
string
Sets the placeholder text of the DateTimePicker.
popup?
any
Lets you customize or replace the default Popup of the DateTimePicker (see example).
popupSettings?
object
Configures the popup options of the DateTimePicker.
The available options are:
animate: Boolean—Controls the popup animation. By default, the open and close animations are enabled.appendTo:— Sets the container to which the Popup
is appended. Defaults to body.
popupClass: String—Sets a list of CSS classes that style the popup.
{}
required?
boolean
Sets whether null is a valid value for the component.
rounded?
string
Configures the roundness of the DateTimePicker.
The available options are:
- small
- medium
- large
- circle
- full
- null—Does not set a rounded
class.
medium
show?
boolean
Sets whether the DateTimePicker shows the popup (see example).
size?
"small" | "medium" | "large"
Configures the size of the DateTimePicker.
The available options are:
- small
- medium
- large
- null—Does not set a size
class.
medium
Configures the incremental steps of the DateTimePicker.
If the incremental step is greater than
1, the DateTimePicker hides the Now button.
{}
tabIndex?
number
Sets the tabIndex property of the DateTimePicker.
0
title?
string
Sets the title of the input element of the DateTimePicker.
''
valid?
boolean
Overrides the validity state of the component.
When you set valid, the component ignores the required property.
validate?
boolean
Sets whether the DateTimePicker validates its value.
validationMessage?
string
Sets the form error message of the DateTimePicker. If you set it to an empty string, the DateTimePicker shows no error.
validityStyles?
boolean
Shows or hides the invalid state styles of the component. When you set it to false, the component shows no invalid state styles.
value?
Date
Sets the value of the DateTimePicker (see example).
The
valuemust be a valid JavaScriptDateinstance.
weekNumber?
boolean
When you set it to true, the Calendar inside the DateTimePicker shows a week number column
(see example).
false
width?
string | number
Sets the width of the DateTimePicker.