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 movedbefore
- (required) the ID of the column before which the moved column will be placedskipProvider
- (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