Use editable
prop to let the user type a time.
Datetimepicker
An input with a simple dropdown/modal for selecting a date and time, uses native datetimepicker for mobile
# Editable (non readonly)
# Range
You can limit the date range with min-datetime
and max-datetime
props.
You can add a custom the footer to the datetimepicker using left
and right
slots.
# Inline
Datetimepicker can also be shown inline with the inline
prop, input is removed, set a v-model
to get the date.
# API
Name | Description | Type | Values | Default |
---|---|---|---|---|
v-model | Binding value | Date | — | — |
datetime-formatter | Function to format datetime (Date type) to a string for display in the input | Function | — | HH:mm or HH:mm AM/PM |
datetime-parser | Function to parse string to a datetime (Date type) for set a datetime from the input to the component | Function | — | HH:mm or HH:mm AM/PM |
min-datetime | Earliest datetime available for selection | Date | — | — |
max-datetime | Latest datetime available for selection | Date | — | — |
size | Vertical size of input and picker, optional | String | is-small , is-medium , is-large | — |
inline | Datimepicker is shown inline, input is removed | Boolean | — | false |
editable | Enable input/typing. Note that you might have to set a custom time parser | Boolean | — | false |
loading | Add the loading state to the input | Boolean | — | false |
icon | Icon name to be added | String | — | — |
icon-pack | Icon pack to use | String | mdi , fa , fas , far , fad , fal | mdi |
mobile-native | Enable native datetimepicker on mobile | Boolean | true | |
position | Optional, position of the timepicker relative to the input | String | is-top-right , is-top-left , is-bottom-left | Bottom right |
open-on-focus | Open timepicker on input focus | Boolean | — | false |
datepicker | Any datepicker props | Object | — | — |
timepicker | Any timepicker props | Object | — | — |
focusable | Datetimepicker container can be focused | Boolean | — | true |
Any native attribute | — | — | — | — |
This page is open source. Noticed a typo or something's unclear?