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_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)