TanStack

table_getAllLeafColumns

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

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

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)