InternalOptionaloptions: { selectedClass?: string; focusClass?: string; multiSelect?: boolean }Get selected elements (readonly interface property)
Select an item (optionally adding to existing selection)
Toggle selection of an item
If the item is selected, it is deselected. Otherwise the item is
selected; pass additive = true to keep the existing selection
(multi-select behaviour) or leave it false to replace any current
selection with just this item (single-select behaviour).
Deselect an item
Select a range of items (for Shift+Click functionality)
Clear all selections
Get all selected items
Check if an item is selected
Get the count of selected items
Set focus to an item (for keyboard navigation)
Get the currently focused item
Get the last selected item
Clear focus from all items
Move focus to the next item
Move focus to the previous item
Cleanup and remove all event listeners
Manages selection state for sortable items Supports single and multi-select operations