The
selectionList
mixin adds support for items and their selection to the host component.Instance Properties
-
instance.items {Coral.Collection}
Readonly -
-
instance.multiple {Boolean}
-
- Default Value:
- false
- HTML Attribute:
- multiple
-
instance.selectedItem {HTMLElement}
Readonly -
-
instance.selectedItems {Array.<HTMLElement>}
Readonly -
The Collection Interface that allows interacting with the items that the component contains. See
Coral.Collection for more details.
Whether multiple items can be selected.
Returns the first selected item in the selectionList. The value
null
is returned if no element is
selected.
Returns an Array containing the set selected items.