Skip to main content

moveColumn()

Description

Moves a column to the new position

Usage

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

Parameters

  • id - (required) the ID of the column to be moved
  • before - (optional) the ID of the column before which the moved column will be placed. If you do not not specify the before parameter, the column will be placed at the end of 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