Header

A column header cell. Combines the core header members with the ColumnSizing feature members (getResizeHandler/getSize/getStart).

Integer counts (colSpan, rowSpan, depth, index) are Int. Sizes returned by getSize/getStart are Double because resize math can produce fractional pixel values.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Column span. Mutated by buildHeaderGroups; starts at 0.

Link copied to clipboard
lateinit var column: Column<TData, TValue>

The column this header represents.

Link copied to clipboard
var depth: Int

Depth of this header in the header tree (root = 0).

Link copied to clipboard
lateinit var getContext: () -> HeaderContext<TData, TValue>

Returns the HeaderContext used by header renderers.

Link copied to clipboard
lateinit var getLeafHeaders: () -> List<Header<TData, *>>

Returns the flattened list of leaf headers beneath this header.

Link copied to clipboard
lateinit var getResizeHandler: (contextDocument: Any?) -> (event: Any?) -> Unit

Returns a pointer/touch event handler that drives column resizing for this header. The first parameter is the owner document (browser-only, Any? in commonMain); the returned handler accepts a platform event (also Any? here).

Link copied to clipboard
lateinit var getSize: () -> Double

Returns the current rendered size of this header in pixels.

Link copied to clipboard

Returns the start offset of this header for the given pinned position (or unpinned when null).

Link copied to clipboard

The HeaderGroup this header belongs to. Assigned during buildHeaderGroups.

Link copied to clipboard
lateinit var id: String

Stable header id.

Link copied to clipboard
var index: Int

Index of this header within its HeaderGroup.

Link copied to clipboard

True when this header is a placeholder (a non-leaf header that has no real column).

Link copied to clipboard

Placeholder id used to keep React-style keys stable across renders.

Link copied to clipboard

Row span. Mutated by buildHeaderGroups; starts at 0.

Link copied to clipboard

Sub-headers (immediate children in the header tree). Mutated during buildHeaderGroups.