Datetimepicker
An input with a simple dropdown/modal for selecting a date and time, uses native datetimepicker for mobile
Examples
Base
Selected: Thu Sep 21 2023 13:06:38 GMT+0000 (Coordinated Universal Time)
Show code
Inline
Show code
Footer slot
Show code
Min/Max Datetime
Show code
Class props
Datetimepicker component
html
<o-datetimepicker></o-datetimepicker>
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 |