Time picker
Examples
Basic
API
Properties
Name
Description and specifications
corners
Corner style
Attribute:
cornersType:
"left" | "right" | "rounded" | "straight"Default:
'rounded'format
Since 1.1.0
Format of time string
See {@link "https://moment.github.io/luxon/#/formatting?id=table-of-tokens"} for all available tokens.
Attribute:
formatType:
stringDefault:
'TT'individual
Deprecated
Not supported since 2.0.0.
Attribute:
individualType:
booleanDefault:
trueshowHour
Show hour input
Attribute:
show-hourType:
booleanDefault:
trueshowMinutes
Show minutes input
Attribute:
show-minutesType:
booleanDefault:
trueshowSeconds
Show seconds input
Attribute:
show-secondsType:
booleanDefault:
trueshowTimeReference
Since 1.1.0 time reference is default aligned with format tt
Deprecated
Since 2.0.0 time reference will be displayed depending on format.
Show time reference input
Attribute:
show-time-referenceType:
boolean | undefinedDefault:
undefinedstandaloneAppearance
Controls the visual presentation and styling of the component when it is displayed as a standalone element
Attribute:
standalone-appearanceType:
booleanDefault:
truetextSelectTime
Since 1.1.0
Text of date select button
Attribute:
text-select-timeType:
stringDefault:
'Done'textTime
Since 2.1.0
Text for top label
Attribute:
text-timeType:
stringDefault:
'Time'time
Since 1.1.0
Select time with format string
Format has to match the `format` property.
Attribute:
timeType:
stringDefault:
DateTime.now().toFormat(this.format)timeReference
Set time reference
Attribute:
time-referenceType:
"AM" | "PM" | undefinedEvents
Name
Description and specifications
done
Deprecated
Will be removed in 3.0.0. Use `time-select` event.
Time event
Detail:
stringtimeChange
Time change event
Detail:
stringtimeSelect
Time event
Detail:
string