Time Editor
Edits a time of day in 12-hour or 24-hour format, with minute steps and an optional seconds field. Scheduling and shift data need time values without a date.
Planned. This page shows the specification from issue #193. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A shifts grid with Start and End time columns.
Expected behavior
The editor has hour, minute and optional seconds segments. Arrow keys change the focused segment by its step. Inputs such as '930p' are parsed to 21:30. The value is stored as 'HH:mm(:ss)'.
Planned API surface
editor: 'time'editorParams.hourCycle: 'h12'|'h23'editorParams.minuteStepeditorParams.showSecondseditorParams.mineditorParams.maxAcceptance criteria
- The stored format is always 24-hour 'HH:mm' or 'HH:mm:ss', whatever the display format. (pending)
- Arrow keys respect minuteStep. (pending)
- Shorthand input like '9:30 pm' and '2130' is parsed correctly. (pending)
- Times outside min or max are rejected. (pending)