WarUI

Number column type

GRID-A07-F04P0baselinePlanned

`type: 'number'` right-aligns values and formats them with Intl.NumberFormat options such as decimals, grouping, compact notation and percent. It also wires numeric sorting, a numeric filter and a numeric editor with locale-aware parsing.

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 with number columns for units, revenue and growth (percent).

Expected behavior

All numeric cells reformat immediately. Sorting stays numeric regardless of the display format. Negative values follow the selected style.

Planned API surface

type'number'numberFormatlocalealignnegativeStylenullAs

Acceptance criteria

  • Number cells are right-aligned by default and the header alignment matches the cells. (pending)
  • The formatted output equals Intl.NumberFormat(locale, numberFormat).format(value). (pending)
  • Sorting compares raw numeric values, with nulls last by default. (pending)
  • NaN and Infinity render as configurable tokens and do not throw. (pending)