Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Legacy API Reference
Static Functions API Reference

table_getRowId

Function: table_getRowId()

ts
function table_getRowId<TFeatures, TData>(
   originalRow, 
   table, 
   index, 
   parent?): string;
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)
const id = table_getRowId(originalRow, table, index, parentRow)