table_getRowId

Function: table_getRowId()

ts
function table_getRowId<TFeatures, TData>(
   originalRow, 
   table, 
   index, 
   parent?): string;

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

Resolves the stable id for a row.

options.getRowId wins when provided. Otherwise root rows use their index and child rows append their index to the parent id, such as 0.2.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

originalRow

TData

table

Table_Internal<TFeatures, TData>

index

number

parent?

Row<TFeatures, TData>

Returns

string

Example

ts
const id = table_getRowId(originalRow, table, index, parentRow)