Skip to main content

header_getLeafHeaders

还没翻译译自英文(tanstack.com)本页 17 段都还没译

function header_getLeafHeaders<TFeatures, TData, TValue>(header): Header<TFeatures, TData, TValue>[];

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

Walks a header tree and collects all descendant leaf headers.

The header itself is included after its descendants, matching the recursive shape used by nested header groups.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

TValue

TValue

Parameters

Header<TFeatures, TData, TValue>

Returns

Header<TFeatures, TData, TValue>[]

Example

const leafHeaders = header_getLeafHeaders(header)