BlogPlaygroundOne

VTimePickerControls API


Props
name
type
default
number[] | ((val: number) => boolean)
undefined

Restricts which hours can be selected. Can be an array of allowed hours, a function that returns true for allowed hours, or an object with min and max properties.

number[] | ((val: number) => boolean)
undefined

Restricts which minutes can be selected. Can be an array of allowed minutes, a function that returns true for allowed minutes, or an object with min and max properties.

number[] | ((val: number) => boolean)
undefined

Restricts which seconds can be selected. Can be an array of allowed seconds, a function that returns true for allowed seconds, or an object with min and max properties.

boolean
false

Enables AM/PM mode.

string
undefined

Applies specified color to the control - supports utility colors with or without text- prefix (for example success, purple or text-purple) or CSS color (#033 or rgba(255, 0, 0, 0.5)). Find a list of built-in classes on the colors page.

boolean
false

Removes the ability to click or target the component.

string | number
undefined

The current hour value.

boolean
false

Displays labels below the time input controls.

string
undefined

Maximum allowed time.

string
undefined

Minimum allowed time.

string | number
undefined

The current minute value.

'am' | 'pm'
undefined

The current period value. either am or pm.

boolean
false

Makes the timepicker readonly.

string | number
undefined

The current second value.

boolean
false

Enables the display and selection of seconds in the timepicker.

number
undefined

The current value of the timepicker.

'hour' | 'minute' | 'second'
undefined

The current view mode of the timepicker. Can be either hour, minute, or second.

Events
name
type
[number]

Emitted when the hour value changes.

[number]

Emitted when the minute value changes.

['am' | 'pm']

Emitted when the period is changed. The event payload is either am or pm.

[number]

Emitted when the second value changes.

['hour' | 'minute' | 'second']

Emitted when the view mode is changed. The event payload is either hour, minute, or second.

Slots
never

The default Vue slot.