@jsvision/datagrid / selectAll
Function: selectAll()
selectAll(
displayKeys):ReadonlySet<Key>
Defined in: datagrid/src/selection.ts:125
Select every displayed row — the header checkbox's select-all target. The scope is the current display() (all filtered/sorted rows in view); filtered-out rows are not swept in.
Parameters
displayKeys
readonly Key[]
The current display order mapped to keys.
Returns
ReadonlySet<Key>
A new set containing exactly the displayed keys (empty when nothing is displayed).
Example
ts
import { selectAll } from '@jsvision/datagrid';
selectAll(['a', 'b', 'c']); // {a, b, c}