time-input
Overview
time-input allows users to enter a time (bound to a datetime field) using a time picker.
Basic Example
<var name="departure_time" type="datetime"/>
<time-input label="Departure time" bind="departure_time" required="false" />

Standard Attributes
bind
bindbindlabel
labellabelrequired
requiredrequiredAdvanced Attributes
align-content
align-contentalign-contentalign-label
align-labelalign-labelclear-button-visibility
clear-button-visibilityclear-button-visibilityclear-icon
clear-iconOptional
Type: string
Default: "fa-times"
Specify the icon on the right side of the input that appears when a time was selected. Find a list of available icons here.
disabled
disableddisablederror-message
error-messageerror-messageicon-position
icon-positionicon-positionid
ididlabel-case
label-caselabel-caselabel-color
label-colorlabel-colormodifier-text
modifier-textmodifier-texton-change
on-changeon-changeplaceholder
placeholderplaceholdershow-if and hide-if
show-ifhide-ifshow-if and hide-iftime-format
time-formatOptional
Type: 12h | 24h
Default: 12h
Specify the clock format when users enter a time. Example:
12hformat: 3:32 PM24hformat: 15:32
time-icon
time-iconOptional
Type: string
Default: "fa-clock"
Specify the icon on the right side of the input that appears before a time was selected. Find a list of available icons here.
Component Methods
The following component methods are available when an id is assigned to the component and component.timeInput({id:'my-id'}) is called from JS/TS:
clear
clearProgrammatically clear the selected date and time bound to the time-input component.
pickTime
pickTimeProgrammatically open the time picker to allow the user to select or update a time value.
scrollIntoView
scrollIntoViewProgrammatically scroll until the time-input is visible in the view.
Last updated
