API reference
@salmonui/kanban
35 exported symbols: 2 components, 28 interfaces, 4 types and 1 constant. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/kanban';Components
KanbanThe Kanban board.KanbanColumnA column declared as an element (<Kanban><KanbanColumn columnKey="todo" header="To do" /></Kanban>). Renders nothing itself: the board reads the props of its d…
Interfaces
KanbanApiCommands props cannot express (ref).KanbanCancelableEventA cancellable event: preventDefault() cancels the built-in action.KanbanCardAddEventonCardAdd.KanbanCardChangeEventonCardChange: every write the board makes.KanbanCardClickEventonCardClick, onCardDoubleClick.KanbanCardContextrenderCard, getCardProps and tooltip argument.KanbanCardFieldsDefault card fields.KanbanCardMoveEventonCardMove.KanbanCardPropsPure per-card props from getCardProps.KanbanCellRefA cell position: column and swimlane.KanbanChangeDetailsSecond argument of the triad callbacks.KanbanColumnContextrenderHeader argument.KanbanColumnDefOne column of the board.KanbanColumnGroupA stacked header over consecutive columns.KanbanColumnPropsProps of KanbanColumn: a column declared as an element (columnKey stands for key, which React reserves).KanbanDataSourceA remote or local @salmonui/data source (the structural DataSource contract).KanbanDropTargetAn external drop target: an element outside the board that accepts cards.KanbanEditorContextrenderEditor argument.KanbanEditorFieldA field of the built-in editor.KanbanExternalDropEventKanbanDropTarget.onDrop argument.KanbanLocaleTextStatic texts of Kanban; {param} templates. Plain JSON, safe to pass from a server component.KanbanPropsKanbanQueryBase query merged into every source read.KanbanSortCard sort within a cell.KanbanSwimlaneContextswimlanes.renderHeader argument.KanbanSwimlaneDefA declared swimlane (order, label, and showEmpty).KanbanSwimlanesSwimlane options.KanbanTooltipTooltip options.
Types
KanbanEditingWhat the editor shows: a card id, 'new', or null when closed.KanbanEventSourceWhere a change came from.KanbanKeyA card id, column key or swimlane key.KanbanLimitStateWIP state of a column or cell.