Multi Select
Formsatlas-multi-selectExamples
Basic
The value is an array of option values; selected options show as chips in the trigger.
Value: review
With Signal Forms
[formField] binds the selected values; a custom validate rule asks for at least two skills. The field's label names the control and its error describes it.
Preselected and disabled options
Start from existing values with [(value)] . A disabled option keeps its place in the list but cannot be toggled, also when it is already selected.
Selected: email, security
API
Generated from the library source, so it always matches the code.
AtlasMultiSelectComponent atlas-multi-select
| Input | Type | Default | Description |
|---|---|---|---|
| options required | MultiSelectOption[] | — | disabled options cannot be chosen. |
| value two-way | string[] | [] | [field] ). |
| disabled | boolean | false | [field] . |
| errors | readonly ValidationError.WithOptionalFieldTree[] | [] | [field] . |
| required | boolean | false | [field] . |
| invalid | boolean | false | [field] . |
| touched | boolean | false | [field] . |
| readonly | boolean | false | [field] . |
| pending | boolean | false | [field] . |
| name | string | '' | [field] . |
| placeholder | string | undefined | undefined | multiSelect.placeholder . |
| ariaLabel | string | null | null | |
| inputId | string | undefined | undefined | id of the focusable element, so a visible <label atlasLabel for="…"> names it. Inside atlas-form-field the field supplies one. |
| ariaDescribedBy | string | null | null | aria-describedby , merged with the surrounding form field's hint or error. |
| class | string | '' | cn() ; yours win on conflicts. |
| Output | Payload | Description |
|---|---|---|
| touch | void |
Types
MultiSelectOption
| Property | Type | Description |
|---|---|---|
| value | string | |
| label | string | |
| disabled? | boolean |