Skip to main content

addColumn()

Description

Adds a new column into Kanban

Usage

addColumn({
id?: string | number,
column?: object
}): void;

Parameters

  • id - (optional) the ID of the new column
  • column - (optional) the data object of the new column
info

The full list of the column parameters can be found here

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// add new column
board.addColumn({
id: "extra_column",
column: {
label: "Extra column",
limit: 2,
strictLimit: 2,
collapsed: true
}
});

Change log: The id and column parameters were added in v1.1