Docs
CodeRabbit
Cloudflare
Railway
SerpAPI
OpenRouter
Netlify
AG Grid
WorkOS
Clerk
Sentry
Unkey
Prisma
Electric
CodeRabbit
Cloudflare
Railway
SerpAPI
OpenRouter
Netlify
AG Grid
WorkOS
Clerk
Sentry
Unkey
Prisma
Electric
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Legacy API Reference
Static Functions API Reference

table_getToggleAllPageRowsSelectedHandler

Function: table_getToggleAllPageRowsSelectedHandler()

ts
function table_getToggleAllPageRowsSelectedHandler<TFeatures, TData>(table): (e) => void;
function table_getToggleAllPageRowsSelectedHandler<TFeatures, TData>(table): (e) => void;

Defined in: features/row-selection/rowSelectionFeature.utils.ts:393

Creates a checkbox-style handler that selects or deselects current page rows.

The handler reads event.target.checked, so it is intended for controls whose checked state means "all page rows selected".

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

ts
(e): void;
(e): void;

Parameters

e

unknown

Returns

void

Example

ts
const onChange = table_getToggleAllPageRowsSelectedHandler(table)
const onChange = table_getToggleAllPageRowsSelectedHandler(table)