WarUI

Rule-driven cell CSS classes

GRID-A07-F19P0baselinePlanned

`classRules` maps CSS class names to predicates evaluated per cell, so classes are added and removed as values change. A matching `rowClassRules` applies the same idea to whole rows. This keeps styling declarative and allows themes to control appearance.

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 ticker grid with live-updating prices. Change cells get is-positive or is-negative classes.

Expected behavior

Classes toggle as values cross thresholds. The overlay lists the active classes per focused cell.

Planned API surface

classRulescellClassrowClassRulesrowClassrefreshCells

Acceptance criteria

  • Rules are re-evaluated when the cell value or row data changes. (pending)
  • Removed classes are cleaned up and never accumulate. (pending)
  • cellClass accepts a string, an array or a function. (pending)
  • Rule evaluation errors are contained per rule. (pending)