WarUI

Validation triggers and severity levels

GRID-A15-F04P1baselinePlanned

Let developers choose when validation runs: on change, on blur, on commit, on save, or manually. Let rules carry a severity of error, warning or info. Warnings inform users without blocking, which reduces friction for soft business rules.

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

Live example

Orders grid with a hard error rule (discount at most 50) and a warning rule (discount above 30).

Expected behavior

In onChange mode the indicator updates on each keystroke inside the editor. In onSave mode nothing is flagged until validateAll() runs or Save is clicked. Warnings render with a distinct icon and wording.

Planned API surface

validationTriggercolumns[].validationTriggerValidationError.severityvalidateAll()severityIcons

Acceptance criteria

  • The trigger can be set grid-wide and overridden per column. (pending)
  • The severity ordering error > warning > info decides which indicator is shown. (pending)
  • Warnings never block a commit. (pending)
  • Manual mode only runs validation on explicit validate calls. (pending)