alepha@docs:~/docs/framework/reference/react-hooks$
cat useTableSelection.md | pretty
1 min read
Last commit:

#useTableSelection

#Import

typescript
1import { useTableSelection } from "@alepha/ui/table";

#Overview

Cross-page row selection for AlephaTable.

Selected rows are cached as full objects (not just keys) so paging away and back never desynchronizes the selection count from the items handed to bulk actions. toggleAll operates on the current page only; clearSelection drops everything.