--- id: Header_Header title: Header_Header --- Defined in: [core/headers/coreHeadersFeature.types.ts:114](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L114) ## Extends - [`Header_CoreProperties`](Header_CoreProperties.md)\<`TFeatures`, `TData`, `TValue`\> ## Extended by - [`Header_Core`](Header_Core.md) ## Type Parameters ### TFeatures `TFeatures` *extends* [`TableFeatures`](TableFeatures.md) ### TData `TData` *extends* [`RowData`](../type-aliases/RowData.md) ### TValue `TValue` *extends* [`CellData`](../type-aliases/CellData.md) = [`CellData`](../type-aliases/CellData.md) ## Properties ### colSpan ```ts colSpan: number; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:59](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L59) The col-span for the header. #### Inherited from [`Header_CoreProperties`](Header_CoreProperties.md).[`colSpan`](Header_CoreProperties.md#colspan) *** ### column ```ts column: Column; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:63](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L63) The header's associated column object. #### Inherited from [`Header_CoreProperties`](Header_CoreProperties.md).[`column`](Header_CoreProperties.md#column) *** ### depth ```ts depth: number; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:67](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L67) The depth of the header, zero-indexed. #### Inherited from [`Header_CoreProperties`](Header_CoreProperties.md).[`depth`](Header_CoreProperties.md#depth) *** ### getContext ```ts getContext: () => HeaderContext; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:122](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L122) Returns the rendering context (or props) for column-based components like headers, footers and filters. #### Returns [`HeaderContext`](HeaderContext.md)\<`TFeatures`, `TData`, `TValue`\> *** ### getLeafHeaders ```ts getLeafHeaders: () => Header[]; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:126](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L126) Returns the leaf headers hierarchically nested under this header. #### Returns [`Header`](../type-aliases/Header.md)\<`TFeatures`, `TData`, `TValue`\>[] *** ### headerGroup ```ts headerGroup: HeaderGroup | null; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:71](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L71) The header's associated header group object. #### Inherited from [`Header_CoreProperties`](Header_CoreProperties.md).[`headerGroup`](Header_CoreProperties.md#headergroup) *** ### id ```ts id: string; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:75](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L75) The unique identifier for the header. #### Inherited from [`Header_CoreProperties`](Header_CoreProperties.md).[`id`](Header_CoreProperties.md#id) *** ### index ```ts index: number; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:79](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L79) The index for the header within the header group. #### Inherited from [`Header_CoreProperties`](Header_CoreProperties.md).[`index`](Header_CoreProperties.md#index) *** ### isPlaceholder ```ts isPlaceholder: boolean; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:87](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L87) A boolean denoting if the header is a placeholder header. Placeholder headers fill the rows above a shallow leaf column's real header so that every header group row accounts for every visible column. Render them as empty cells, or use `header.rowSpan` to merge each chain of placeholders into one vertically spanning header cell. #### Inherited from [`Header_CoreProperties`](Header_CoreProperties.md).[`isPlaceholder`](Header_CoreProperties.md#isplaceholder) *** ### placeholderId? ```ts optional placeholderId?: string; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:91](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L91) If the header is a placeholder header, this will be a unique header ID that does not conflict with any other headers across the table. #### Inherited from [`Header_CoreProperties`](Header_CoreProperties.md).[`placeholderId`](Header_CoreProperties.md#placeholderid) *** ### rowSpan ```ts rowSpan: number; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:103](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L103) The number of header group rows the header should span when merging header cells vertically. A leaf column that is shallower than the deepest leaf column produces a chain of placeholder headers above its real header; the placeholder at the top of the chain reports the chain's full span, and every header it covers (including the real leaf header in the bottom row) reports 0. To merge vertically, skip headers with a rowSpan of 0 and render every other header with the `rowSpan` attribute and its column's header content, even when it is a placeholder. Headers in even column trees always report 1. #### Inherited from [`Header_CoreProperties`](Header_CoreProperties.md).[`rowSpan`](Header_CoreProperties.md#rowspan) *** ### subHeaders ```ts subHeaders: Header[]; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:107](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L107) The header's hierarchical sub/child headers. Will be empty if the header's associated column is a leaf-column. #### Inherited from [`Header_CoreProperties`](Header_CoreProperties.md).[`subHeaders`](Header_CoreProperties.md#subheaders) *** ### table ```ts table: Table_Internal; ``` Defined in: [core/headers/coreHeadersFeature.types.ts:111](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/headers/coreHeadersFeature.types.ts#L111) Reference to the parent table instance. #### Inherited from [`Header_CoreProperties`](Header_CoreProperties.md).[`table`](Header_CoreProperties.md#table)