# ValidatorContext (@salmonui/data-grid/engine)

> The ValidatorContext interface of @salmonui/data-grid/engine: Context passed to custom validators; Column is the host's column (the Data Grid passes its compiled column).

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/ValidatorContext

```ts
import type { ValidatorContext } from '@salmonui/data-grid/engine';
```

Also exported from `@salmonui/data-grid/engine/validation`.

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: interface

```ts
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).

Members (4):

| Name | Signature | Flags | 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). |
