Edit Validation and Error Display
Checks values with synchronous and asynchronous validators, both per cell and per row. An invalid value can either block the commit or be stored with an error marker. Errors appear as inline messages, cell styling and a tooltip.
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
A users grid with Email (format plus async uniqueness check) and Age (18-120) columns.
Expected behavior
In block mode, an invalid commit keeps the editor open and shows the message. In mark mode, the value is stored with a red border and an error icon. While async validation runs, the cell shows a pending state.
Planned API surface
columns[].validatorscolumns[].asyncValidator(value, row, signal)rowValidatorvalidationMode: 'block'|'mark'getValidationErrors()onValidationErrorAcceptance criteria
- In block mode, invalid values are never written to the data. (pending)
- In mark mode, errors are listed by getValidationErrors() until they are fixed. (pending)
- Async validation that is no longer needed is cancelled when the user edits again. (pending)
- Error messages are linked to the editor or cell through aria-describedby. (pending)