deleteComment()
Description
Delete a card comment by its ID
Usage
deleteComment({
id?: string | number,
cardId: string | number
}): void;
Parameters
id
- (optional) the ID of the comment to be deletedcardId
- (required) the ID of the card which comment to be deleted
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