table_getFooterGroups

Function: table_getFooterGroups()

ts
function table_getFooterGroups<TFeatures, TData>(table): HeaderGroup<TFeatures, TData>[];

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

Builds footer groups by reversing the current header groups.

Footer rendering uses the same header objects and grouping structure, but renders them from leaf level back toward the root.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

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

Returns

HeaderGroup\<`TFeatures`, `TData`\>[]

Example

ts
const footerGroups = table_getFooterGroups(table)