isSelected(
(key: Key
)): boolean | Returns whether a key is selected. |
isSelectionEqual(
(selection: Set<Key>
)): boolean | Returns whether the current selection is equal to the given selection. |
extendSelection(
(toKey: Key
)): void | Extends the selection to the given key. |
toggleSelection(
(key: Key
)): void | Toggles whether the given key is selected. |
replaceSelection(
(key: Key
)): void | Replaces the selection with only the given key. |
setSelectedKeys(
(keys: Iterable<Key>
)): void | Replaces the selection with the given keys. |
selectAll(): void | Selects all items in the collection. |
clearSelection(): void | Removes all keys from the selection. |
toggleSelectAll(): void | Toggles between select all and an empty selection. |
select(
(key: Key,
, e?: PressEvent
| LongPressEvent
| PointerEvent
)): void | Toggles, replaces, or extends selection to the given key depending
on the pointer event and collection's selection mode. |
canSelectItem(
(key: Key
)): boolean | Returns whether the given key can be selected. |
isDisabled(
(key: Key
)): boolean | Returns whether the given key is non-interactive, i.e. both selection and actions are disabled. |
setSelectionBehavior(
(selectionBehavior: SelectionBehavior
)): void | Sets the selection behavior for the collection. |
setFocused(
(isFocused: boolean
)): void | Sets whether the collection is focused. |
setFocusedKey(
(key: Key,
, child?: FocusStrategy
)): void | Sets the focused key, and optionally, whether the first or last child of that key should receive focus. |