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

row_getParentRow

Function: row_getParentRow()

ts
function row_getParentRow<TFeatures, TData>(row): 
  | Row<TFeatures, TData>
  | undefined;
function row_getParentRow<TFeatures, TData>(row): 
  | Row<TFeatures, TData>
  | undefined;

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

Looks up this row's direct parent, if it has one.

Parent lookup searches the pre-pagination row model so parent relationships are available even when the parent is not on the current page.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

row

Row<TFeatures, TData>

Returns

| Row<TFeatures, TData> | undefined

Example

ts
const parent = row_getParentRow(row)
const parent = row_getParentRow(row)