columnKey
Description
Optional. Specifies which column a card belongs to.
info
To organize cards into columns, assign a key (column or a custom one) to the ID of the target column within the card data object. The columnKey property in the widget configuration should be set to this key.
Usage
columnKey?: string;
Default config
note
If you don’t set a column key using the columnKey property, the widget defaults to using the "column" key. In that case, the column key in the card data object must be set to the appropriate column ID.
const cards = [
{
column: "backlog",
// other data
}
];
Example
const cards = [
{
label: "Backlog task",
column_custom_key: "backlog"
},
{
label: "In progress task",
column_custom_key: "inprogress"
}
];
new kanban.Kanban("#root", {
columns,
cards,
columnKey: "column_custom_key",
// other parameters
});