WarUI

Row-level cross-field validators

GRID-A15-F05P0baselinePlanned

Validators that receive the whole row and return errors that can target specific fields. They enable rules such as 'End date after start date' or 'Either phone or email required'. Errors are attached to the referenced cells and to the row header.

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

Projects grid with Start and End columns, plus Phone and Email columns.

Expected behavior

Editing either date re-runs the row validator. The error highlights both fields. Fixing either field clears the error from both.

Planned API surface

rowValidatorsRowValidatorFnRowValidationError.fieldsrowValidationChangegetRowErrors()

Acceptance criteria

  • The row validator runs after cell validators on any field change in the row. (pending)
  • Errors with a fields array mark each listed cell. (pending)
  • Errors without a fields array mark only the row. (pending)
  • Row errors appear in getRowErrors and in the summary. (pending)