API reference: @salmonui/data-grid/engine
ValidatorContextinterface
import type { ValidatorContext } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/validation.
interface ValidatorContext<Row, Column = unknown> {
readonly rowId: RowId;
readonly columnId: string;
readonly column: Column;
readonly isNew: boolean;
}
Context passed to custom validators; Column is the host's column (the Data Grid passes its compiled column).
| Name | Signature | Description |
|---|---|---|
rowId | readonly rowId: RowId; | |
columnId | readonly columnId: string; | |
column | readonly column: Column; | |
isNew | readonly isNew: boolean; | True for a row added in this edit session (not yet saved). |