table_getLeafHeaders

Function: table_getLeafHeaders()

ts
function table_getLeafHeaders<TFeatures, TData>(table): Header<TFeatures, TData, unknown>[];

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

Collects only the leaf headers from the current header tree.

Parent/group headers are skipped, making the result suitable for rendering one header per visible leaf column.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal\<`TFeatures`, `TData`\>

Returns

Header\<`TFeatures`, `TData`, `unknown`\>[]

Example

ts
const leafHeaders = table_getLeafHeaders(table)