Skip to main content

deleteComment()

Description

Remove a comment from a card using its ID

Usage

deleteComment({
id?: string | number,
cardId: string | number
}): void;

Parameters

  • id - (optional) the comment's ID that needs to be removed
  • cardId - (required) the ID of the card containing the comment

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// delete comment
board.deleteComment({
id: 1,
cardId: 1,
});

Change log: The method was added in v1.4