Skip to main content

move-column

Description

Triggered when a column is moved

Usage

"move-column": ({
id: string | number,
before?: string | number,
skipProvider?: boolean
}) => void;

Parameters

The callback for the move-column event receives an object with these properties:

  • id - (required) the ID of the column being moved
  • before - (optional) the ID of the column before which the moved column will be inserted. If this isn’t specified, the column will be placed at the end of the board
  • skipProvider - (optional) controls whether the request to the server is suppressed
info

To manage internal events, you can use the Event Bus methods

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// subscribe on the "move-column" event
board.api.on("move-column", (obj) => {
console.log(obj);
});

Change log: This event was introduced in v1.1