Skip to content

GridHeaderContext

Since v2.5.0

Context passed to a *tbwHeader template.

Mirrors the core HeaderCellContext, with $implicit bound to the header text so let value works.

PropertyTypeDescription
$implicitstringThe header text (from column.header or column.field).
valuestringThe header text (explicit binding).
columnanyColumn configuration reference.
sortStateasc | desc | unknownCurrent sort state for this column.
filterActivebooleanWhether the column has an active filter.
cellElHTMLElementThe header cell DOM element being rendered into.
renderSortIcon() => HTMLElement | unknownRender the standard sort indicator icon. Null when not sortable.
renderFilterButton() => HTMLElement | unknownRender the standard filter button. Null when filtering is inactive.
__row?TRowRow data shape marker — never populated at runtime.