10:23 PM
Use editable
to let the user type a time.
# Non read-only
Use editable
to let the user type a time.
# Range
You can limit the time range with min-time
and max-time
props.
Any slots are added to the footer of the clockpicker.
# Colors
Clockpicker supports all is-<color>
classes from Bulma, including custom colors added at build time. This can be specified in the class
property or in the type
property. Inline display is also availble by specifying the inline
prop.
Name | Description | Type | Values | Default |
---|---|---|---|---|
v-model | Binding value | Date | — | — |
type | Type (color) of the button when checked | String | is-white , is-black , is-light ,
is-dark , is-primary , is-info , is-success ,
is-warning , is-danger ,
and any other colors you've set in the $colors list on Sass | is-primary |
hour-format | Hour format for input and display | String | 12 or 24 | undefined : default to browser locale. |
increment-minutes | Unit for increment minutes | Number | — | 5 |
time-formatter | Function to format time (Date type) to a string for display in the input | Function | — | (time) => new Intl.DateTimeFormat(locale).format(time) |
time-parser | Function to parse string to a time (Date type) for set a time from the input to the component | Function | — | Tries to parse the time using the locale specific format. Fallback to HH:mm or HH:mm AM/PM |
min-time | Earliest time available for selection | Date | — | — |
max-time | Latest time available for selection | Date | — | — |
size | Vertical size of input, optional | String | is-small , is-medium , is-large | — |
inline | Clockpicker 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 |
disabled | Disables the input field and/or picker | 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 |
unselectable-times | Array of unselectable times (Date object) | Array | — | - |
mobile-native | Enable native timepicker on mobile | Boolean | true , false | true |
mobile-modal | Clockpicker is shown into a modal on mobile | Boolean | true , false | true |
position | Optional, position of the timepicker relative to the input | String | is-top-right , is-top-left , is-bottom-left | Bottom Right |
auto-switch | Automatically switches between hour and minutes selection after click | Boolean | true , false | true |
open-on-focus | Open clockpicker on input focus | Boolean | — | false |
hours-label | Label to show on hour button | String | — | Hours |
minutes-label | Label to show on minutes button | String | — | Min |
append-to-body | Append clockpicker calendar to body (prevents event bubbling) | Boolean | — | false |
locale | Accept a string with a BCP 47 language tag, or an array of such strings. See Unicode BCP 47 locale identifier | String, Array of String | — | undefined : default to browser locale. |
Any native attribute | — | — | — | — |
This page is open source. Noticed a typo or something's unclear?