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_getLeafRows

Function: row_getLeafRows()

ts
function row_getLeafRows<TFeatures, TData>(row): Row<TFeatures, TData>[];
function row_getLeafRows<TFeatures, TData>(row): Row<TFeatures, TData>[];

Defined in: core/rows/coreRowsFeature.utils.ts:105

Flattens this row's descendant tree into leaf rows.

The row itself is not included; only nested subRows are walked.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

row

Row<TFeatures, TData>

Returns

Row<TFeatures, TData>[]

Example

ts
const descendants = row_getLeafRows(row)
const descendants = row_getLeafRows(row)