# KanbanEditorField (@salmonui/kanban)

> The KanbanEditorField interface of @salmonui/kanban: A field of the built-in editor.

Canonical: https://salmonui.dev/docs/reference/kanban/KanbanEditorField

```ts
import type { KanbanEditorField } from '@salmonui/kanban';
```

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

## Reference

Kind: interface

```ts
interface KanbanEditorField<T> {
    readonly field: string;
    readonly label: string;
    readonly kind?: 'text' | 'select' | 'number' | 'textarea' | undefined;
    readonly options?: readonly {
        readonly value: KanbanKey;
        readonly label: string;
    }[] | undefined;
    readonly required?: boolean | undefined;
    readonly validate?: ((value: unknown, draft: T) => string | null | undefined) | undefined;
}
```

A field of the built-in editor.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `field` | `readonly field: string;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `kind` | `readonly kind?: 'text' \| 'select' \| 'number' \| 'textarea' \| undefined;` | optional |  |
| `options` | `readonly options?: readonly {     readonly value: KanbanKey;     readonly label: string; }[] \| undefined;` | optional | Options of a `select` field (default for the column and swimlane fields: the columns and lanes). |
| `required` | `readonly required?: boolean \| undefined;` | optional |  |
| `validate` | `readonly validate?: ((value: unknown, draft: T) => string \| null \| undefined) \| undefined;` | optional | Returns an error message, or nothing when the value is valid. |
