Skip to main content

rowKey

Description

defines belonging the card to the row

Usage

rowKey?: string

Parameters

  • rowKey - (optional) defines belonging the card to the row
info

To distribute the cards into rows, 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 config

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
});