Time input - Code
Basic
Label
Disabled
Readonly
Validation
Slots
API for ix-time-input
Properties
ARIA label for the time picker toggle button
Will be set as aria-label for the nested HTML button element
aria-label-time-toggle-buttonstring | undefined'Toggle time picker'Disabled attribute.
disabledbooleanfalseEnable Popover API rendering for dropdown.
enable-top-layerbooleanfalseFormat of time string.
See https://moment.github.io/luxon/#/formatting?id=table-of-tokens for all available tokens.
formatstring'TT'Helper text below the input field.
helper-textstring | undefinedHides the header of the picker.
hide-headerbooleanfalseInterval for hour selection.
hour-intervalnumber1Label for the AM button in 12-hour mode.
i18n-amstring'AM'Text of the time picker cancel button. Cancel, pressing Escape or
clicking outside the dropdown discards the time picked in the dropdown.
i18n-cancelstring'Cancel'I18n string for the error message when the time is not parsable.
i18n-error-time-unparsablestring'Time is not valid'Text for the time picker hour column header.
i18n-hour-column-headerstring'hr'Text for the time picker millisecond column header.
i18n-millisecond-column-headerstring'ms'Text for the time picker minute column header.
i18n-minute-column-headerstring'min'Label for the PM button in 12-hour mode.
i18n-pmstring'PM'Text for the time picker second column header.
i18n-second-column-headerstring'sec'Text of the time picker confirm button.
i18n-select-timestring'Confirm'Text for the time picker top label.
i18n-timestring'Time'Info text below the input field.
info-textstring | undefinedError text below the input field.
invalid-textstring | undefinedLabel of the input field.
labelstring | undefinedLocale identifier (e.g. 'en' or 'de'). Passed to the embedded time picker for locale-aware parsing and formatting.
localestring | undefinedLatest selectable time (format tokens). Invalid non-empty values are ignored.
max-timestring | undefinedInterval for millisecond selection.
millisecond-intervalnumber100Earliest selectable time (format tokens). Invalid non-empty values are ignored.
min-timestring | undefinedInterval for minute selection.
minute-intervalnumber1Name of the input element.
namestring | undefinedPlaceholder of the input element.
placeholderstring | undefinedReadonly attribute.
readonlybooleanfalseRequired attribute.
requiredboolean | undefinedInterval for second selection.
second-intervalnumber1Show text as tooltip.
show-text-as-tooltipboolean | undefinedIf false, pressing Enter will submit the form (if inside a form).
Set to true to suppress submit on Enter.
suppress-submit-on-enterbooleanfalseText alignment within the time input. 'start' aligns the text to the start of the input, 'end' aligns the text to the end of the input.
text-alignment"end" | "start"'start'Valid text below the input field.
valid-textstring | undefinedValue of the input element.
valuestring''Warning text below the input field.
warning-textstring | undefinedMethods
Events
Change event. Emitted when the time input loses focus and the value has changed.
ixChangestringValidation state change event. Emitted when the validation state changes.
validityStateChange{ patternMismatch: boolean; valueMissing: boolean; invalidReason?: string | undefined; }Value change event. Emitted when the input value changes.
valueChangestringSlot
Element will be displayed at the end of the input
Element will be displayed at the start of the input