Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
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_toggleAllPageRowsSelected

Function: table_toggleAllPageRowsSelected()

ts
function table_toggleAllPageRowsSelected<TFeatures, TData>(table, value?): void;
function table_toggleAllPageRowsSelected<TFeatures, TData>(table, value?): void;

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

Selects or deselects every selectable row on the current page.

Omitting value toggles based on table_getIsAllPageRowsSelected(table). Child rows are included when sub-row selection allows it.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

value?

boolean

Returns

void

Example

ts
table_toggleAllPageRowsSelected(table)
table_toggleAllPageRowsSelected(table)