SiTimepickerComponent documentation¶
selector
si-timepickerCommon interface for form item controls. Controls that should be connected to SiFormItemComponent must implement this interface and must be provided using the SI_FORM_ITEM_CONTROL token.
Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| disabled ¶ | boolean | false | All input fields will be disabled if set to true. |
| hideLabels ¶ | boolean | false | Hide the labels of the input fields. |
| hoursAriaLabel ¶ | TranslatableString | $localize`:@@SI_DATEPICKER.HOURS:Hours` | |
| hoursLabel ¶ | TranslatableString | 'hh' | |
| hoursPlaceholder ¶ | string | 'hh' | |
| id ¶ | string | __si-timepicker-${SiTimepickerComponent.idCounter++} | |
| max ¶ | Date | A maximum time limit. The date part of the date object will be ignored. | |
| meridians ¶ | string[] | ||
| meridiansAriaLabel ¶ | TranslatableString | $localize`:@@SI_DATEPICKER.PERIOD:Period` | |
| meridiansLabel ¶ | TranslatableString | 'am/pm' | |
| millisecondsAriaLabel ¶ | TranslatableString | $localize`:@@SI_DATEPICKER.MILLISECONDS:Milliseconds` | |
| millisecondsLabel ¶ | TranslatableString | 'ms' | |
| millisecondsPlaceholder ¶ | string | 'ms' | |
| min ¶ | Date | A minimum time limit. The date part of the date object will be ignored. | |
| minutesAriaLabel ¶ | TranslatableString | $localize`:@@SI_DATEPICKER.MINUTES:Minutes` | |
| minutesLabel ¶ | TranslatableString | 'mm' | |
| minutesPlaceholder ¶ | string | 'mm' | |
| readonly ¶ | boolean | false | |
| secondsAriaLabel ¶ | TranslatableString | $localize`:@@SI_DATEPICKER.SECONDS:Seconds` | |
| secondsLabel ¶ | TranslatableString | 'ss' | |
| secondsPlaceholder ¶ | string | 'ss' | |
| showMeridian ¶ | boolean | Show time in 12-hour period including the select to toggle between AM/PM. | |
| showMilliseconds ¶ | boolean | false | |
| showMinutes ¶ | boolean | true | |
| showSeconds ¶ | boolean | false |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| inputCompleted ¶ | void | |
| isValid ¶ | boolean | |
| meridianChange ¶ | string |
Attributes and Methods¶
| Name | Type | Default | Description |
|---|---|---|---|
| (readonly) labelledby ¶ | string | ... | ID that should be assigned to the label element inside the SiFormItemComponent . If the target control is not of type input, select or button, it cannot be referenced by a label. Instead, aria-labelledby must be used to create a reference to a label. In such a case, an implementation of SiFormItemControl must provide the id of the label in labelledby . SiFormItemComponent will apply the id to the label so that it can be used inside the control to reference it in the aria-labelledby attribute. |
Types Documentation¶
Variable |
|---|
| Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality. |
|---|
| Common interface for form item controls. Controls that should be connected to SiFormItemComponent must implement this interface and must be provided using the SI_FORM_ITEM_CONTROL token. | |||||
|---|---|---|---|---|---|
|
Translatable import imported from @siemens/element-translate-ng |
|---|
|
| Interface for form error mapper. It resolves a key to either a translatable string or function which is called with the validation error for its key and should return a translatable string. | |
|---|---|
| |
|
| ||||||||||||
| ||||||||||||
|
| |||||||||||
| |||||||||||
| |||||||||||
|
| ||||||||||||
| ||||||||||||
|
Except where otherwise noted, content on this site is licensed under MIT License.