DateTime Input
<k-date-time-input>
Props
after
String (default: null)
Text that is shown after the input (right before the icon)
autofocus
Boolean (default: false)
If true, the input will be instantly focused when the form is created
before
String (default: null)
Text that is shown before the input
disabled
Boolean (default: false)
If true, the input is disabled and cannot be filled in or edited
icon
String (default: null)
Sets the icon, that is shown on the right next to the input.
id
String (default: null)
The id for the input element.
max
Number (default: null)
The last allowed date
min
Number (default: null)
The first allowed date
required
Boolean (default: false)
If true, the input must not be empty
theme
String (default: null)
By default, inputs are as unstyled as possible to provide a clean boilerplate. If you need the typical field input look, you can set the theme to field
time
Boolean
|Object (default: false)
The time input is disabled by default. You can either pass true or an configuration object to enable it. Check out the time field docs for available options.
value / v-model
String (default: null)
The date must be provided as iso date string. i.e.
2012-12-12T22:33:00
Methods
focus()
The focus event can be used to set the focus on the input.
Events
@input
The input event is triggered when the value changes.
@invalid
The invalid event is triggered when the input validation fails. This can be used to react on errors immediately.
CSS class
.k-datetime-input