Docs
Cloudflare
Railway
CodeRabbit
Clerk
OpenRouter
SerpAPI
WorkOS
Netlify
AG Grid
Prisma
Electric
Sentry
Unkey
Cloudflare
Railway
CodeRabbit
Clerk
OpenRouter
SerpAPI
WorkOS
Netlify
AG Grid
Prisma
Electric
Sentry
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

table_getAllLeafColumnsById

Function: table_getAllLeafColumnsById()

ts
function table_getAllLeafColumnsById<TFeatures, TData>(table): Record<string, Column<TFeatures, TData, unknown>>;
function table_getAllLeafColumnsById<TFeatures, TData>(table): Record<string, Column<TFeatures, TData, unknown>>;

Defined in: core/columns/coreColumnsFeature.utils.ts:235

Builds an id lookup for terminal leaf columns only.

Parent/group columns are excluded, making this lookup appropriate for row cells and feature state keyed by data columns.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

Record<string, Column<TFeatures, TData, unknown>>

Example

ts
const leavesById = table_getAllLeafColumnsById(table)
const leavesById = table_getAllLeafColumnsById(table)