delete-column
Description
Triggers when a column is removed
Usage
"delete-column": ({
id: string | number,
skipProvider?: boolean
}) => void;
Parameters
The callback for the delete-column event receives an object with these properties:
id
- (required) the ID of the column being deletedskipProvider
- (optional) controls whether the request is sent to the server or not
info
To manage internal events, refer to the Event Bus methods
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// listen to the "delete-column" event
board.api.on("delete-column", (obj) => {
console.log(obj.id);
});