Constructs a new HsSelection instance.
The selection options.
The action to perform on selection.
Additional information about the action.
Additional context for the selection.
Optional
currentThe currently selected item.
Optional
initialThe initial item to select.
The completion state for the selected item.
Optional
originThe originating view for the selection.
Optional
parentThe parent collection of selectable items.
The result of the selection operation.
The current state of the selection.
Optional
targetThe target screen or view for the selection.
Gets the index of the specified item in the parent collection.
The item to find.
The index of the item, or -1 if not found or no collection.
Gets the next item in the parent collection after the current item.
The next item, or undefined if at the end or no collection.
Gets the previous item in the parent collection before the current item.
The previous item, or undefined if at the start or no collection.
Moves the selection to the next item in the parent collection.
Moves the selection to the previous item in the parent collection.
Reusable
Sets the completion state for the selected item if it is still pending.
The new completion state.
HsSelection manages the state and navigation of a selection within a collection.
Remarks