WarUI

Conditional formatting presets

GRID-A07-F21P2beyond-baselinePlanned

`conditionalFormat` is a declarative feature for spreadsheet-style formatting with color scales, data bars, icon sets and top/bottom-N or above-average rules. It computes column statistics automatically. An optional end-user rules editor lets non-developers create rules at runtime and persist them in grid state.

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 sales reps grid with a 3-color scale on Attainment and an arrow icon set on Trend.

Expected behavior

Rules render immediately. Changing a filter recomputes the scale in filtered scope. Saved state restores the rules after a reload.

Planned API surface

conditionalFormatConditionalRulecolorScaledataBariconSettopNconditionalFormatEditorgetStatesetStateonConditionalFormatChange

Acceptance criteria

  • Rules are serializable JSON with no functions, so they can be persisted safely. (pending)
  • Statistics such as min, max, percentile and average are recomputed incrementally on data change. (pending)
  • Icon sets include text alternatives. (pending)
  • Rule priority and stop-if-true semantics are documented and tested. (pending)