delete-comment
Description
Fires when deleting a card comment
Usage
"delete-comment": ({
id?: string | number,
cardId: string | number,
skipProvider?: boolean
}) => void;
Parameters
The callback of the delete-comment event can take an object with the following parameters:
id
- (optional) the ID of the comment to be deletedcardId
- (required) the ID of the card which comment to be deletedskipProvider
- (optional) enables/disables preventing the request from being sent to the server
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-comment" event
board.api.on("delete-comment", (obj) => {
console.log(obj.id);
});
Change log: The event was added in v1.4