View as Markdown

API reference: @salmonui/kanban

KanbanColumnPropsinterface

import type { KanbanColumnProps } from '@salmonui/kanban';
interface KanbanColumnProps extends Omit<KanbanColumnDef, 'key'> {
    readonly columnKey?: KanbanKey | undefined;
}

Props of KanbanColumn: a column declared as an element (columnKey stands for key, which React reserves).

KanbanColumnProps members (14, 13 inherited)
NameSignatureDescription
columnKeyoptionalreadonly columnKey?: KanbanKey | undefined;
keysoptionalinheritedkeys?: readonly KanbanKey[];

Several column values shown in one column; moves write the first.

headerinheritedheader: string;

Header text; also the accessible name of the column.

collapsibleoptionalinheritedcollapsible?: boolean;

Shows the collapse toggle (default false).

countoptionalinheritedcount?: boolean;

Shows the card count in the header (default true).

renderHeaderoptionalinheritedrenderHeader?: ((ctx: KanbanColumnContext) => ReactNode);

Replaces the header text content. Pure; the toggle, count and add button stay.

minoptionalinheritedmin?: number;

WIP minimum.

maxoptionalinheritedmax?: number;

WIP maximum.

addButtonoptionalinheritedaddButton?: boolean;

Shows an add button at the end of every cell of the column.

draggableoptionalinheriteddraggable?: boolean;

Cards may be dragged out of this column (default true).

droppableoptionalinheriteddroppable?: boolean;

Cards may be dropped into this column (default true).

allowedTargetsoptionalinheritedallowedTargets?: readonly KanbanKey[];

Columns that cards of this column may move to (default: every droppable column).

hiddenoptionalinheritedhidden?: boolean;

Hides the column.

classNameoptionalinheritedclassName?: string;