Header select-all with configurable scope
The header checkbox selects or deselects all rows within a configurable scope: the current page, all filtered rows, or all rows in the data set. It shows an indeterminate state when only part of the scope is selected. Making the scope explicit prevents users from accidentally acting on hidden rows.
Planned. This page shows the specification from issue #189. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A user grid with 300 rows, 25 per page, a status filter applied, and the checkbox column enabled.
Expected behavior
With 'page', the header selects the 25 visible rows. With 'filtered', it selects every row matching the filter across pages. With 'all', it ignores the filter. The header shows checked, indeterminate or unchecked based on the scope's selection coverage.
Planned API surface
selectAllScope: 'page' | 'filtered' | 'all'onSelectAllheaderCheckboxStateselectAll(scope)deselectAll(scope)Acceptance criteria
- selectAllScope='page' selects only the selectable rows on the current page. (pending)
- selectAllScope='filtered' selects all selectable rows that match the active filters, including those on other pages. (pending)
- selectAllScope='all' selects all selectable rows regardless of filters. (pending)
- The header shows indeterminate when some but not all selectable rows in scope are selected. (pending)
- Clicking the header in the indeterminate state selects all rows in scope (documented behaviour). (pending)