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_getExpandedDepth

Function: table_getExpandedDepth()

ts
function table_getExpandedDepth<TFeatures, TData>(table): number;
function table_getExpandedDepth<TFeatures, TData>(table): number;

Defined in: features/row-expanding/rowExpandingFeature.utils.ts:219

Computes the deepest expanded row id depth.

Row ids are split on .; expanded-all state scans the current row model, while explicit expanded state scans its expanded id keys.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

number

Example

ts
const depth = table_getExpandedDepth(table)
const depth = table_getExpandedDepth(table)