WarUI

Tree column with indentation and toggle icons

GRID-A17-F03P0baselinePlanned

Designates one column as the tree column. It renders indentation proportional to depth, an expand/collapse toggle and optional connector guide lines. The indent size, icons and leaf placeholder are configurable so the tree stays readable at any density.

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

Live example

A category tree with 4 levels and indent set to 20px. Tree lines are off.

Expected behavior

Indentation updates live. Tree lines connect parents to their children. Switching the tree column moves the toggles to that column. In RTL, the indent and the icon direction are mirrored.

Planned API surface

treeColumntreeIndenttreeIconsshowTreeLinesleafIndentPlaceholdertreeCellRenderer

Acceptance criteria

  • Indent equals depth × treeIndent in pixels (pending)
  • Leaf rows keep their text aligned with sibling text (pending)
  • Toggle icons rotate or swap to reflect the expanded state (pending)
  • RTL mirrors the indentation side (pending)
  • A custom treeCellRenderer receives level, expanded and hasChildren (pending)