SiSelectComponent documentation¶
import { SiSelectComponent } from '@siemens/element-ng/select'; Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| ariaLabel ¶ | string | null | null | Aria label of the select. |
| disabled ¶ | boolean | false | Whether the select input is disabled. |
| errormessageId ¶ | string | `${this.id()}-errormessage` | This ID will be bound to the Implements SiFormItemControl |
| filterPlaceholder ¶ | TranslatableString | $localize`:@@SI_SELECT.SEARCH-PLACEHOLDER:Search…` | Placeholder for search input field. |
| hasFilter ¶ | boolean | false | Enables the filter input |
| id ¶ | string | `__si-select-${SiCustomSelectDirective.idCounter++}` | Unique identifier. Implements SiFormItemControl |
| labelledby ¶ | string | undefined | undefined | Aria labelledby of the select. |
| noResultsFoundLabel ¶ | TranslatableString | $localize`:@@SI_SELECT.NO-RESULTS-FOUND:No results found` | Label if no item can be found. |
| placeholder ¶ | TranslatableString | undefined | Placeholder text to display when no options are selected. | |
| readonly ¶ | boolean | false | Readonly state. Similar to disabled but with higher contrast. |
| scrollStrategy ¶ | ScrollStrategy | defaultConnectedOverlayScrollStrategy() | Optional CDK scroll strategy used for the custom select overlay. |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| openChange ¶ | boolean | Emits when the dropdown open state changes. |
Attributes and Methods¶
Types Documentation¶
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';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.
import type { SiFormItemControl } from '@siemens/element-ng/form';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
aria-describedbyattribute of their focusable elements.errormessageId:
readonlystring | Signal<string>¶ -
The actual id of the control that should be used in the
forattribute of a label.id?:
readonlystring | Signal<string | undefined>¶ - readonly
If the control is meant to be used a checkbox. This affects the label positioning.
-
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?:
readonlystring | Signal<string | undefined> | null¶
Except where otherwise noted, content on this site is licensed under MIT License.