SiSelectComponent documentation¶
selector
si-select 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.
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 aria-describedby attribute of the select. |
| 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. |
| labelledby ¶ | string | 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 | 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¶
| Name | Type | Default | Description |
|---|---|---|---|
| close() ¶ | () => void | Closes the si-select . | |
| (readonly) errormessageId ¶ | InputSignal<string> | ... | ID bound to the select's aria-describedby attribute. |
| (readonly) id ¶ | InputSignal<string> | ... | Unique identifier. |
| (readonly) labelledbyInput ¶ | InputSignal<(string | undefined)> | ... | Aria labelledby of the select. |
| open() ¶ | () => void | Opens the si-select . | |
| (readonly) openChange ¶ | OutputEmitterRef<boolean> | ... | Emits when the dropdown open state changes. |
| (readonly) readonly ¶ | InputSignalWithTransform<boolean, unknown> | ... | Readonly state. |
| (readonly) scrollStrategy ¶ | InputSignal<ScrollStrategy> | ... | Scroll strategy used for the select overlay. |
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. | |||||
|---|---|---|---|---|---|
|
| | ||||
|---|---|---|---|---|
|
| 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. | |
|---|---|
| |
| Function The error mapper is used to resolve an angular validation error to a TranslatableString . It will be merged with already existing error mappers. | ||
|---|---|---|
|
| | ||||||
|---|---|---|---|---|---|---|
|
| | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
|
| Deprecated: This component should no longer be used. When providing a form wide error mapper, use the provideFormValidationErrorMapper . When using the column layout, use the form-col-layout classes.For a custom breakpoint use the SCSS mixin: | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
| |||||||||||
| |||||||||||
|
| | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
| ||||||||||||
|
Except where otherwise noted, content on this site is licensed under MIT License.