WarUI

Custom header templates

GRID-A07-F17P1baselinePlanned

`headerRenderer` replaces header content with a framework component while still receiving the sort state, filter state and menu hooks. Built-in sort, resize and menu affordances can stay active or be fully delegated to the template. Header groups support their own templates.

Planned. This page shows the specification from issue #184. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A metrics grid whose headers show a title, a subtitle and an info icon, with sorting still functional.

Expected behavior

Clicking the title sorts. The info button opens help without sorting. Header heights align across columns.

Planned API surface

headerRendererheaderGroupRendererHeaderRendererPropssortStatetoggleSortopenColumnMenuheaderTooltip

Acceptance criteria

  • Template props expose the sort direction and a toggleSort(multi) function. (pending)
  • Events from interactive children inside the header do not trigger sort when stopPropagation is used or the child is marked data-war-no-sort. (pending)
  • aria-sort stays on the columnheader element regardless of the template. (pending)