Defined in: core/rows/coreRowsFeature.types.ts:82
TFeatures extends TableFeatures
TData extends RowData
optional getRowId: (originalRow, index, parent?) => string;
Defined in: core/rows/coreRowsFeature.types.ts:90
This optional function is used to derive a unique ID for any given row. If not provided the rows index is used (nested rows join together with . using their grandparents' index eg. index.index.index). If you need to identify individual rows that are originating from any server-side operations, it's suggested you use this function to return an ID that makes sense regardless of network IO/ambiguity eg. a userId, taskId, database ID field, etc.
TData
number
Row<TFeatures, TData>
string
getRowId: row => row.userId
optional getSubRows: (originalRow, index) => readonly TData[] | undefined;
Defined in: core/rows/coreRowsFeature.types.ts:99
This optional function is used to access the sub rows for any given row. If you are using nested rows, you will need to use this function to return the sub rows object (or undefined) from the row.
TData
number
readonly TData[] | undefined
getSubRows: row => row.subRows