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 - (required) the ID of the column before which the moved column will be placed
  • skipProvider - (optional) controls whether the request to the server is skipped or not
info

To manage internal events, you can refer to the Event Bus methods

Example

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

Change log: This event was introduced in v1.1