Skip to content

createTimeInput · <tz-time-input> ​

Options ​

OptionTypeDefault
valuePlainTime | nullnullThe time shown, as a clock face rather than a moment.
stepMinutesnumber5What the arrows, the wheel and the keyboard move the minutes by.
minTimePlainTime | string | undefined—The earliest and latest time accepted, inclusive.
maxTimePlainTime | string | undefined—The latest time offered.
hour12boolean | undefined—12-hour with an AM/PM button. Undefined asks the locale, which is what a reader of that locale expects.
localestring | undefined—A BCP-47 tag for the month and weekday names, and the order of a date. The browser's own when left out.
datePlainDate | string | nullnullThe day this time is on, and the zone it is read in. Given both, the arrows step over an hour the clocks skip instead of landing in it — from 03:00 down is 01:00 on the morning of the change, not 02:00, which would be corrected straight back and look like a stuck arrow.
timeZonestring | undefined—An IANA identifier — 'Europe/Paris', never an offset. Offsets change twice a year.
variant'boxed' | 'bare''boxed''boxed' stands on its own, in a form. 'bare' is the row under a calendar: big figures, no frame, arrows only when the pointer or the focus is there.
disabledbooleanfalseNothing can be chosen while this is set.
messagesTzslotMessagesENThe words the widget says. One bundle, English and French included.

Callbacks ​

Type
onChange((value: PlainTime | null) => void) | undefinedCalled when the user chooses, changes or clears the value.

MIT