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_getAllLeafColumns

Function: table_getAllLeafColumns()

ts
function table_getAllLeafColumns<TFeatures, TData>(table): Column<TFeatures, TData, unknown>[];
function table_getAllLeafColumns<TFeatures, TData>(table): Column<TFeatures, TData, unknown>[];

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

Collects all terminal leaf columns in their current table order.

Column ordering features can reorder the collected leaves before the result is returned.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

Column<TFeatures, TData, unknown>[]

Example

ts
const leafColumns = table_getAllLeafColumns(table)
const leafColumns = table_getAllLeafColumns(table)