Skip to main content

moveColumn()

Description

Shifts a column to a new position within the board.

Usage

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

Parameters

  • id - (required) the ID of the column to be relocated
  • before - (required) the ID of the column before which the moved column will be inserted

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 introduced in v1.1