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

expandRows

Function: expandRows()

ts
function expandRows<TFeatures, TData>(rowModel): RowModel<TFeatures, TData>;
function expandRows<TFeatures, TData>(rowModel): RowModel<TFeatures, TData>;

Defined in: features/row-expanding/createExpandedRowModel.ts:61

Expands a row model according to the current expanded row state.

Expanded sub-rows are inserted into the flattened row order while preserving the original row hierarchy.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData = any

Parameters

rowModel

RowModel<TFeatures, TData>

Returns

RowModel<TFeatures, TData>