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).
| Name | Signature | Description |
|---|---|---|
columnKeyoptional | readonly columnKey?: KanbanKey | undefined; | |
keysoptionalinherited | keys?: readonly KanbanKey[]; | Several column values shown in one column; moves write the first. |
headerinherited | header: string; | Header text; also the accessible name of the column. |
collapsibleoptionalinherited | collapsible?: boolean; | Shows the collapse toggle (default false). |
countoptionalinherited | count?: boolean; | Shows the card count in the header (default true). |
renderHeaderoptionalinherited | renderHeader?: ((ctx: KanbanColumnContext) => ReactNode); | Replaces the header text content. Pure; the toggle, count and add button stay. |
minoptionalinherited | min?: number; | WIP minimum. |
maxoptionalinherited | max?: number; | WIP maximum. |
addButtonoptionalinherited | addButton?: boolean; | Shows an add button at the end of every cell of the column. |
draggableoptionalinherited | draggable?: boolean; | Cards may be dragged out of this column (default true). |
droppableoptionalinherited | droppable?: boolean; | Cards may be dropped into this column (default true). |
allowedTargetsoptionalinherited | allowedTargets?: readonly KanbanKey[]; | Columns that cards of this column may move to (default: every droppable column). |
hiddenoptionalinherited | hidden?: boolean; | Hides the column. |
classNameoptionalinherited | className?: string; |