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

row_toggleExpanded

Function: row_toggleExpanded()

ts
function row_toggleExpanded<TFeatures, TData>(row, expanded?): void;
function row_toggleExpanded<TFeatures, TData>(row, expanded?): void;

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

Expands or collapses this row.

Omitting expanded toggles the row. If the current state is expanded-all, the function first materializes that state into a row-id map before applying the row-specific change.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

row

Row<TFeatures, TData>

expanded?

boolean

Returns

void

Example

ts
row_toggleExpanded(row)
row_toggleExpanded(row)