SiSelectComboboxValueComponent documentation¶
selector
si-select-combobox-valueRepresents a single selected value inside an SiSelectComboboxComponent .
Project one <si-select-combobox-value> per selected entry. Optional icon , iconColor , stackedIcon and stackedIconColor inputs mirror the icon API of SelectOption and render an icon (with optional stacked overlay) before the projected content.
Add the comma-separated CSS class to render a comma between adjacent values. Omit it when using chips, custom separators, or a single value.
Example:
<si-select-combobox>
<si-select-combobox-value
icon="element-face-happy"
iconColor="status-success"
>
{{ select.value() }}
</si-select-combobox-value>
</si-select-combobox>
Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| icon ¶ | string | An optional icon rendered before the projected content. | |
| iconColor ¶ | string | Optional CSS color class applied to icon . | |
| stackedIcon ¶ | string | Optional secondary icon stacked on top of icon . | |
| stackedIconColor ¶ | string | Optional CSS color class applied to stackedIcon . |
Types Documentation¶
| A select option | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
| 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. | |||||
|---|---|---|---|---|---|
|
| 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. |
|---|
| Possible values for the aria-haspopup attribute exposed by the combobox host of a custom select. |
|---|
Variable |
|---|
|
| 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. | ||
|---|---|---|
|
|
| Visual trigger element for custom selects built with SiCustomSelectDirective . Renders the projected content and a dropdown caret icon. The ARIA role, focus handling, and state attributes live on the host component via SiCustomSelectDirective — this component is purely visual. Example: | |||
|---|---|---|---|
| |||
|
| Host directive for building custom selects. Add this as a hostDirective on your component and expose the inputs/outputs you need. The directive handles: - ControlValueAccessor: ControlValueAccessor integration ( formControl , ngModel , [(value)] ) - Disabled / readonly state management - Overlay lifecycle for the dropdown (open/close) - Focus management and focus trapping in the dropdown - Opening the dropdown on click, Enter, Space, ArrowDown, ArrowUp - SiFormItemControl integrationUse SiSelectDropdownDirective to mark the dropdown template in your component, and call open , close , updateValue from your component logic. Example: | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
|
| Structural directive marking the dropdown template for custom selects built with SiCustomSelectDirective . When placed on an <ng-template> , it automatically registers the template with the parent SiCustomSelectDirective .Example: | |||
|---|---|---|---|
| |||
|
| ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
|
| 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.