limestone/TimePicker
Provides a Limestone-themed time selection component.
Loading Live Preview
Loading Live Preview
Members
Section titled “Members ”TimePicker Component
Section titled “TimePicker   Component ”A component that allows displaying or selecting time.
Set the limestone/TimePickerlimestone/TimePicker.TimePicker.value property to a standard JavaScript /docs/developer-guide/glossary/#date/docs/developer-guide/glossary/#date object to initialize the picker.
By default, TimePicker maintains the state of its value property. Supply the
defaultValue property to control its initial value. If you wish to directly control updates
to the component, supply a value to value at creation time and update it in response to
onChange events.
Wrapped with:
ui/Changeableui/Changeable.Changeable
Properties
defaultValue
Section titled “defaultValue”Default value
The selected date.
TimePickerBase Component
Section titled “TimePickerBase   Component ”limestone/TimePickerlimestone/TimePicker.TimePickerBase is the stateless functional time picker component. Should not be used directly but may be composed within another component as it is within limestone/TimePickerlimestone/TimePicker.TimePicker.
Properties
Required Property • hour
Section titled “Required Property • hour”The hour component of the time.
Required Property • meridiem
Section titled “Required Property • meridiem”The meridiem component of the time.
Required Property • minute
Section titled “Required Property • minute”The minute component of the time.
Required Property • order
Section titled “Required Property • order”The order in which the component pickers are displayed.
Should be an array of 2 or 3 strings containing one of 'h', 'k', 'm', and 'a'.
data-webos-voice-disabled
Section titled “data-webos-voice-disabled”Disables voice control.
disabled
Section titled “disabled”Disables the TimePicker.
hourAriaLabel
Section titled “hourAriaLabel”The "aria-label" for the hour picker
If not specified, the "aria-label" for the hour picker will be a combination of the current value and 'hour change a value with up down button'.
The primary text of TimePicker.
meridiemAriaLabel
Section titled “meridiemAriaLabel”The "aria-label" for the meridiem picker.
If not specified, the "aria-label" for the meridiem picker will be a combination of the current value and 'change a value with up down button'.
meridiemLabel
Section titled “meridiemLabel”The hint string read when focusing the meridiem picker.
Required Property • meridiems
Section titled “Required Property • meridiems”Array of meridiem labels to display.
minuteAriaLabel
Section titled “minuteAriaLabel”The "aria-label" for the minute picker.
If not specified, the "aria-label" for the minute picker will be a combination of the current value and 'minute change a value with up down button'.
noLabel
Section titled “noLabel”Hides the label that displays the time.
onChangeHour
Section titled “onChangeHour”Called on changes in the hour component of the time.
onChangeMeridiem
Section titled “onChangeMeridiem”Called on changes in the meridiem component of the time.
onChangeMinute
Section titled “onChangeMinute”Called on changes in the minute component of the time.
onSpotlightDisappear
Section titled “onSpotlightDisappear”Called when the component is removed while retaining focus.
onSpotlightLeft
Section titled “onSpotlightLeft”Called when the focus leaves the picker when the 5-way left key is pressed.
onSpotlightRight
Section titled “onSpotlightRight”Called when the focus leaves the picker when the 5-way right key is pressed.
spotlightDisabled
Section titled “spotlightDisabled”Disables spotlight navigation into the component.
Default: falseonComplete
Section titled “onComplete”Called when Enter key down on the last picker
timeToLocaleString Function
Section titled “timeToLocaleString   Function ”timeToLocaleString( time ) → String | anyConverts a standard Date object into a locale-specific string.
1 Param
- time Date
Dateto convert
Returns
- String | any
Converted date or
nullifdateis invalid