row_getLeafRows

Function: row_getLeafRows()

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