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