deleteComment()
Description
Removes a comment from a card by specifying its ID
Usage
deleteComment({
id: string | number,
cardId: string | number
}): void;
Parameters
id- (required) the identifier of the comment that should be removedcardId- (required) the identifier 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