Skip to content
Enact

limestone/TimePicker

Provides a Limestone-themed time selection component.

Loading Live Preview

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

Default value


The selected date.

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

The hour component of the time.


The meridiem component of the time.


The minute component of the time.


Array(String)

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'.


Boolean

Disables voice control.


Disables the TimePicker.


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.


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'.


The hint string read when focusing the meridiem picker.


Array(String)

Array of meridiem labels to display.


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'.


Hides the label that displays the time.


Called on changes in the hour component of the time.


Called on changes in the meridiem component of the time.


Called on changes in the minute component of the time.


Function

Called when the component is removed while retaining focus.


Called when the focus leaves the picker when the 5-way left key is pressed.


Called when the focus leaves the picker when the 5-way right key is pressed.


Disables spotlight navigation into the component.

Default: false

Called when Enter key down on the last picker

timeToLocaleString( time )  String  |  any

Converts a standard Date object into a locale-specific string.

1 Param
timeDate

Date to convert

Returns
String | any

Converted date or null if date is invalid