Skip to main content

addColumn()

Description

Adds a new column into Kanban

Usage

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

Parameters

  • id - (optional) the ID of the new column
  • column - (optional) the data object of the new column
  • before - (optional) the ID of the column, before which the new column will be placed
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
},
before: "column_2"
});

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