Skip to content

Home > @liquidrazor/list-display > getRowId

getRowId() function

Extracts the id from a row based on the configured idKey.

Signature:

typescript
getRowId: <TRow = any, TRowId extends RowId = RowId>(row: TRow, idKey: keyof TRow & string) => TRowId

Parameters

Parameter

Type

Description

row

TRow

idKey

keyof TRow & string

Returns:

TRowId