Skip to content

Header

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/types.d.ts:115

  • CoreHeader<TData, TValue>.ColumnSizingHeader

TData extends RowData

TValue

colSpan: number

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:27

The col-span for the header.

API Docs

Guide

CoreHeader.colSpan


column: Column<TData, TValue>

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:33

The header’s associated column object.

API Docs

Guide

CoreHeader.column


depth: number

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:39

The depth of the header, zero-indexed based.

API Docs

Guide

CoreHeader.depth


getContext: () => HeaderContext<TData, TValue>

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:45

Returns the rendering context (or props) for column-based components like headers, footers and filters.

HeaderContext<TData, TValue>

API Docs

Guide

CoreHeader.getContext


getLeafHeaders: () => Header<TData, unknown>[]

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:51

Returns the leaf headers hierarchically nested under this header.

Header<TData, unknown>[]

API Docs

Guide

CoreHeader.getLeafHeaders


getResizeHandler: (context?) => (event) => void

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/features/ColumnSizing.d.ts:173

Returns an event handler function that can be used to resize the header. It can be used as an:

  • onMouseDown handler
  • onTouchStart handler

The dragging and release events are automatically handled for you.

Document

(event): void

unknown

void

API Docs

Guide

ColumnSizingHeader.getResizeHandler


getSize: () => number

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/features/ColumnSizing.d.ts:179

Returns the current size of the header.

number

API Docs

Guide

ColumnSizingHeader.getSize


getStart: (position?) => number

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/features/ColumnSizing.d.ts:185

Returns the offset measurement along the row-axis (usually the x-axis for standard tables) for the header. This is effectively a sum of the offset measurements of all preceding headers.

ColumnPinningPosition

number

API Docs

Guide

ColumnSizingHeader.getStart


headerGroup: HeaderGroup<TData>

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:57

The header’s associated header group object.

API Docs

Guide

CoreHeader.headerGroup


id: string

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:63

The unique identifier for the header.

API Docs

Guide

CoreHeader.id


index: number

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:69

The index for the header within the header group.

API Docs

Guide

CoreHeader.index


isPlaceholder: boolean

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:75

A boolean denoting if the header is a placeholder header.

API Docs

Guide

CoreHeader.isPlaceholder


optional placeholderId: string

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:81

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.

API Docs

Guide

CoreHeader.placeholderId


rowSpan: number

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:87

The row-span for the header.

API Docs

Guide

CoreHeader.rowSpan


subHeaders: Header<TData, TValue>[]

Defined in: node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/core/headers.d.ts:93

The header’s hierarchical sub/child headers. Will be empty if the header’s associated column is a leaf-column.

API Docs

Guide

CoreHeader.subHeaders