table_getRow

Function: table_getRow()

ts
function table_getRow<TFeatures, TData>(
   table, 
   rowId, 
searchAll?): Row<TFeatures, TData>;

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

Looks up a row by id from the current or full row model.

By default this searches table.getRowModel(). Passing searchAll searches the pre-pagination model first, then falls back to the core model.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

rowId

string

searchAll?

boolean

Returns

Row<TFeatures, TData>

Example

ts
const row = table_getRow(table, rowId, true)