Skip to main content

move-column

Description

Fires when moving a column

Usage

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

Parameters

The callback of the move-column event can take an object with the following 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
  • skipProvider - (optional) enables/disables preventing the request from being sent to the server
info

For handling the inner 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 added in v1.1