Skip to main content

rowKey

Description

Optional. Defines belonging the card to the row

info

To distribute the cards into rows (swimlanes), you need to specify a custom key and set it to the ID of the desired row in the card data object. The rowKey property needs to be set to this custom key in the widget configuration object

Usage

rowKey?: string;

Example

const cards = [
{
label: "Backlog task",
row_custom_key: "feature"
},
{
label: "In progress task",
row_custom_key: "done"
}
];

new kanban.Kanban("#root", {
columns,
cards,
rows,
rowKey: "row_custom_key",
// other parameters
});

Related sample: Kanban. Swimlanes