# ValidatorContext (@salmonui/core/validation)

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

Canonical: https://salmonui.dev/docs/reference/core/validation/ValidatorContext

```ts
import type { ValidatorContext } from '@salmonui/core/validation';
```

Entry index: https://salmonui.dev/docs/reference/core/validation (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/validation.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). |
