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

row_getToggleExpandedHandler

Function: row_getToggleExpandedHandler()

ts
function row_getToggleExpandedHandler<TFeatures, TData>(row): () => void;
function row_getToggleExpandedHandler<TFeatures, TData>(row): () => void;

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

Creates a row control handler that toggles this row's expanded state.

The handler is a no-op when the row cannot expand.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

row

Row<TFeatures, TData>

Returns

ts
(): void;
(): void;

Returns

void

Example

ts
const onClick = row_getToggleExpandedHandler(row)
const onClick = row_getToggleExpandedHandler(row)