time-input
Overview
time-input
allows users to enter a time (bound to a datetime
field) using a time picker.
Version compatibility
time-input
was introduced in version 4.87.0 of the JourneyApps Runtime.
Basic Example
Standard Attributes
bind
pagebindbind
label
pagelabellabel
required
pagerequiredrequired
Advanced Attributes
align-content
pagealign-contentalign-content
align-label
pagealign-labelalign-label
clear-button-visibility
pageclear-button-visibilityclear-button-visibility
clear-icon
clear-icon
Optional
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
pagedisableddisabled
error-message
pageerror-messageerror-message
icon-position
pageicon-positionicon-position
id
pageidid
label-case
pagelabel-caselabel-case
label-color
pagelabel-colorlabel-color
modifier-text
pagemodifier-textmodifier-text
on-change
pageon-changeon-change
placeholder
pageplaceholderplaceholder
show-if
and hide-if
pageshow-ifpagehide-ifshow-if
and hide-if
time-format
time-format
Optional
Type: 12h
| 24h
Default: 12h
Specify the clock format when users enter a time. Example:
12h
format: 3:32 PM24h
format: 15:32
time-icon
time-icon
Optional
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
clear
Programmatically clear the selected date and time bound to the time-input
component.
pickTime
pickTime
Programmatically open the time picker to allow the user to select or update a time value.
scrollIntoView
scrollIntoView
Programmatically scroll until the time-input
is visible in the view.
Last updated