SiPillsInputComponent documentation¶
import { SiPillsInputComponent } from '@siemens/element-ng/pills-input'; Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| disabled ¶ | boolean | false | Whether the pills-input is disabled. |
| errormessageId ¶ | string | `${this.id()}-errormessage` | This ID will be bound to the Implements SiFormItemControl |
| id ¶ | string | `__si-pills-input-${SiPillsInputComponent.idCounter++}` | The identifier of the pills-input. Will be generated if not provided. Implements SiFormItemControl |
| inputElementAriaLabel ¶ | TranslatableString | $localize`:@@SI_PILLS_INPUT.INPUT_ELEMENT_ARIA_LABEL:Create item` | The aria-label for the inner input where users enter new items. |
| labelledby ¶ | string | `${this.id()}-label` | 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. Implements SiFormItemControl |
| placeholder ¶ | TranslatableString | undefined | The placeholder to be shown if no value is currently present. | |
| readonly ¶ | boolean | false | Whether the pills-input is readonly |
Types Documentation¶
Represents a translatable string. This can either be a translation key, e.g. import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';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. Generated ID that the SiFormItemComponent will assign to the element containing the error messages. Implementations of SiFormItemControl must generate this ID and assign it to the errormessageId : The actual id of the control that should be used in the id ? : If the control is meant to be used a checkbox. This affects the label positioning. isFormCheck ? : 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. labelledby ? : import type { SiFormItemControl } from '@siemens/element-ng/form';
aria-describedby attribute of their focusable elements.string | Signal<string> ¶ for attribute of a label.string | Signal<string | undefined> ¶ boolean ¶ string | Signal<string | undefined> | null ¶
Except where otherwise noted, content on this site is licensed under MIT License.