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

Function: table_toggleAllRowsSelected()

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

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

Selects or deselects every selectable row before grouping.

Omitting value toggles based on table_getIsAllRowsSelected(table). Deselecting removes matching ids from the existing selection map.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

value?

boolean

Returns

void

Example

ts
table_toggleAllRowsSelected(table)
table_toggleAllRowsSelected(table)