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

header_getLeafHeaders

Function: header_getLeafHeaders()

ts
function header_getLeafHeaders<TFeatures, TData, TValue>(header): Header<TFeatures, TData, TValue>[];
function header_getLeafHeaders<TFeatures, TData, TValue>(header): Header<TFeatures, TData, TValue>[];

Defined in: core/headers/coreHeadersFeature.utils.ts:26

Walks a header tree and collects all descendant leaf headers.

The header itself is included after its descendants, matching the recursive shape used by nested header groups.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

TValue

TValue

Parameters

Header<TFeatures, TData, TValue>

Returns

Header<TFeatures, TData, TValue>[]

Example

ts
const leafHeaders = header_getLeafHeaders(header)
const leafHeaders = header_getLeafHeaders(header)