Datetimepicker
An input with a simple dropdown/modal for selecting a date and time, uses native datetimepicker for mobile
Base
Show code
Footer slot
Show code
Inline
Show code
Min/Max Datetime
Show code
Class props
| Class prop | Description | Props | Suffixes | |
|---|---|---|---|---|
| datepickerWrapperClass | Class of the Datepicker wrapper. | |||
| timepickerWrapperClass | Class of the Timepicker wrapper. |
Props
| Prop name | Description | Type | Values | Default |
|---|---|---|---|---|
| appendToBody | boolean | - | ||
| autocomplete | Native options to use in HTML5 validation | string | - | |
| datepicker | object | - | ||
| datetimeCreator | func | - | Default function (see source code) | |
| datetimeFormatter | func | - | ||
| datetimeParser | func | - | ||
| disabled | boolean | - | ||
| editable | boolean | - | false | |
| expanded | Makes input full width when inside a grouped or addon field | boolean | - | |
| icon | Icon name to be added | string | - | |
| iconPack | Icon pack to use | string | mdi, fa, fas and any other custom icon pack | |
| iconRight | string | - | ||
| iconRightClickable | boolean | - | ||
| inline | boolean | - | ||
| locale | string|array | - | From config { | |
| maxDatetime | date | - | ||
| maxlength | Same as native maxlength, plus character counter | number|string | - | |
| minDatetime | date | - | ||
| mobileNative | boolean | - | true | |
| modelValue | date | - | ||
| openOnFocus | boolean | - | ||
| override | boolean | - | ||
| placeholder | string | - | ||
| position | string | - | ||
| rounded | Makes the element rounded | boolean | - | |
| size | string | - | ||
| statusIcon | Show status icon using field and variant prop | boolean | - | From config { |
| timepicker | object | - | ||
| useHtml5Validation | Enable html 5 native validation | boolean | - | From config { |
| validationMessage | The message which is shown when a validation error occurs | string | - |
Events
| Event name | Properties | Description |
|---|---|---|
| active-change | ||
| icon-right-click | ||
| change-month | ||
| change-year | ||
| blur | ||
| focus | ||
| invalid | ||
| update:modelValue |
Slots
| Name | Description | Bindings |
|---|---|---|
| footer |
Style
| CSS Variable | SASS Variable | Default |
|---|
Oruga