Skip to main content

delete-comment

Description

Triggered when a card comment is deleted

Usage

"delete-comment": ({
id?: string | number,
cardId: string | number,
skipProvider?: boolean
}) => void;

Parameters

The callback for the delete-comment event receives an object with these properties:

  • id - (optional) the ID of the comment being deleted
  • cardId - (required) the ID of the card containing the comment
  • skipProvider - (optional) controls whether the request is prevented from being sent to the server
info

To manage internal events, you can use the Event Bus methods

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// listen for the "delete-comment" event
board.api.on("delete-comment", (obj) => {
console.log(obj.id);
});

Change log: This event was introduced in v1.4