WarUI

Number Editor

GRID-A14-F05P0baselinePlanned

A numeric editor with min, max, step, precision and locale-aware parsing. It stops non-numeric values from reaching numeric data and respects regional decimal separators.

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

Live example

An order-lines grid with a Quantity column (integer, min 0) and a Discount column (0-100, precision 2).

Expected behavior

The editor parses input using the selected locale. ArrowUp and ArrowDown change the value by step. Out-of-range values are rejected or clamped according to the configuration. The committed value is a number or null.

Planned API surface

editor: 'number'editorParams.mineditorParams.maxeditorParams.stepeditorParams.precisioneditorParams.localeeditorParams.allowNull

Acceptance criteria

  • Input is parsed using the configured locale's group and decimal separators. (pending)
  • ArrowUp and ArrowDown change the value by step, and Shift multiplies the step by 10. (pending)
  • The committed value is a JavaScript number, never a string. (pending)
  • A value outside min or max shows an error and does not commit unless clamping is enabled. (pending)
  • An empty input commits null only when allowNull is true. (pending)