# DataGridDialogField (@salmonui/data-grid)

> The DataGridDialogField interface of @salmonui/data-grid: One field of the dialog form (editing.renderDialog).

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

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

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

## Reference

Kind: interface

```ts
interface DataGridDialogField<Row> {
    readonly field: string;
    readonly column: DataGridColumnInfo<Row>;
    readonly label: string;
    readonly value: unknown;
    readonly errors: readonly string[];
    setValue(value: unknown): void;
    readonly editor: ReactNode;
}
```

One field of the dialog form (`editing.renderDialog`).

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `field` | `readonly field: string;` |  |  |
| `column` | `readonly column: DataGridColumnInfo<Row>;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `value` | `readonly value: unknown;` |  |  |
| `errors` | `readonly errors: readonly string[];` |  |  |
| `setValue` | `setValue(value: unknown): void;` |  |  |
| `editor` | `readonly editor: ReactNode;` |  | The built-in (or `renderEditor`) editor with its label and messages. |
