# KanbanColumnDef (@salmonui/kanban)

> The KanbanColumnDef interface of @salmonui/kanban: One column of the board.

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

```ts
import type { KanbanColumnDef } 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 KanbanColumnDef {
    readonly key?: KanbanKey | undefined;
    readonly keys?: readonly KanbanKey[] | undefined;
    readonly header: string;
    readonly collapsible?: boolean | undefined;
    readonly count?: boolean | undefined;
    readonly renderHeader?: ((ctx: KanbanColumnContext) => ReactNode) | undefined;
    readonly min?: number | undefined;
    readonly max?: number | undefined;
    readonly addButton?: boolean | undefined;
    readonly draggable?: boolean | undefined;
    readonly droppable?: boolean | undefined;
    readonly allowedTargets?: readonly KanbanKey[] | undefined;
    readonly hidden?: boolean | undefined;
    readonly className?: string | undefined;
}
```

One column of the board.

Members (14):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `key` | `readonly key?: KanbanKey \| undefined;` | optional | Column value that maps a card to this column (the `columnField` value). |
| `keys` | `readonly keys?: readonly KanbanKey[] \| undefined;` | optional | Several column values shown in one column; moves write the first. |
| `header` | `readonly header: string;` |  | Header text; also the accessible name of the column. |
| `collapsible` | `readonly collapsible?: boolean \| undefined;` | optional | Shows the collapse toggle (default false). |
| `count` | `readonly count?: boolean \| undefined;` | optional | Shows the card count in the header (default true). |
| `renderHeader` | `readonly renderHeader?: ((ctx: KanbanColumnContext) => ReactNode) \| undefined;` | optional | Replaces the header text content. Pure; the toggle, count and add button stay. |
| `min` | `readonly min?: number \| undefined;` | optional | WIP minimum. |
| `max` | `readonly max?: number \| undefined;` | optional | WIP maximum. |
| `addButton` | `readonly addButton?: boolean \| undefined;` | optional | Shows an add button at the end of every cell of the column. |
| `draggable` | `readonly draggable?: boolean \| undefined;` | optional | Cards may be dragged out of this column (default true). |
| `droppable` | `readonly droppable?: boolean \| undefined;` | optional | Cards may be dropped into this column (default true). |
| `allowedTargets` | `readonly allowedTargets?: readonly KanbanKey[] \| undefined;` | optional | Columns that cards of this column may move to (default: every droppable column). |
| `hidden` | `readonly hidden?: boolean \| undefined;` | optional | Hides the column. |
| `className` | `readonly className?: string \| undefined;` | optional |  |
