Select all
Aggregate selection with an indeterminate checkbox.
An aggregate checkbox derives its state from the selectable collection. Keep unavailable rows outside that collection. This recipe adds no component export.
Read checked before scheduling an update if the event may outlive the handler.
For remote collections, specify whether Select all means the visible page,
filtered results or every record. A client-side array does not imply server-wide
selection. Keep selection counts and bulk-action permissions in the host.