OptionalallThe display text that is used when all items are selected.
OptionalallSet if the dropdown is disabled.
Protected ReadonlyeaOptionalemptyThe display text that is used when no items are selected.
OptionalemptyProtected Readonlyi18nAn array of available items.
OptionallabelProperties for the accessibility.
OptionallabelOptionalnameThe name to display before the selected options.
OptionalnameIf true, the selected binding is replaced with a new array every time the user changes the selection.
OptionalselectedAn array or set of selected item ids.
This will be modified in-place when the selection is changed by the user or via the view model api.
If in-place modification can not be used for some reason, use replaceSelected to disable this behavior.
Protected ReadonlyselectionA signal that can be used by extending classes when the selected items have changed.
Protected ReadonlysignalerTrue to display items in alphabetical order.
Set how the dropdown button looks.
Set a fixed width for the dropdown container.
An array of items as they are currently displayed.
ProtectedcomputeDeselect all items.
ProtectedgetGet the current display text of the dropdown button.
ProtectedgetCheck if an item with the specified id is currently selected.
The item id.
True if the item is selected.
Select all items.
Select or deselect an item by id.
The item id.
Optionalselect: booleanTrue to select, false to deselect or undefined to toggle.
A standard multi select dropdown.
Example