WarUI

Angular validators adapter

GRID-A15-F11P1beyond-baselinePlanned

Accept standard Angular ValidatorFn and AsyncValidatorFn in column definitions. Developers can reuse existing form validators in grid cells. Error maps are converted to grid errors with messages.

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

Angular demo grid with built-in Validators.required and Validators.email plus a custom IBAN ValidatorFn.

Expected behavior

The cell editor is wrapped with a FormControl-compatible context. Angular error keys appear as grid errors. Async validators honor cancellation through the adapter.

Planned API surface

columns[].ngValidatorscolumns[].ngAsyncValidatorsWarNgValidationAdapterngErrorMessages

Acceptance criteria

  • Validators.* built-ins work unchanged. (pending)
  • An AbstractControl-like context exposes value and parent row values. (pending)
  • Observable async validators are unsubscribed on a value change. (pending)
  • The adapter ships as a separate Angular entry point. (pending)