delete-column
Description
Fires when removing a column
Usage
"delete-column": ({ id: string | number }) => void;
Parameters
The callback of the delete-column event can take an object with the following parameter:
id
- (required) the ID of the column to be deleted
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 "delete-column" event
board.api.on("delete-column", (obj) => {
console.log(obj.id);
});