Skip to main content

moveColumn()

Description

Shifts a column to a new spot on the board.

Usage

moveColumn({
id: string | number,
before?: string | number
}): void;

Parameters

  • id - (required) the ID of the column that needs to be moved
  • before - (optional) the ID of the column that the moved column should be placed ahead of. If this parameter is left out, the column will be moved to the end of the board.

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// move the "backlog" column and place it before the "done" one
board.moveColumn({
id: "backlog",
before: "done"
});

Change log: The method was added in v1.1