API reference: @salmonui/core/validation
FieldValidatorContextinterface
import type { FieldValidatorContext } from '@salmonui/core/validation';interface FieldValidatorContext {
readonly name: string;
readonly formData: FormDataLike | null;
readonly isNew: false;
}
Context of a form field's custom validators (@salmonui/inputs/form Field). It is passed as both the row and the
ctx argument, so validate(value, { formData }) reads other fields.
| Name | Signature | Description |
|---|---|---|
name | readonly name: string; | The field's |
formData | readonly formData: FormDataLike | null; | The owning form's data at validation time; |
isNew | readonly isNew: false; |