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

Function: table_toggleAllRowsExpanded()

ts
function table_toggleAllRowsExpanded<TFeatures, TData>(table, expanded?): void;
function table_toggleAllRowsExpanded<TFeatures, TData>(table, expanded?): void;

Defined in: features/row-expanding/rowExpandingFeature.utils.ts:81

Expands or collapses every row.

Passing true stores the special expanded-all state. Passing false stores an empty map. Omitting the value toggles based on whether all rows are currently expanded.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

expanded?

boolean

Returns

void

Example

ts
table_toggleAllRowsExpanded(table)
table_toggleAllRowsExpanded(table)