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