delete-vote
Description
Triggered when a user removes a vote from a card
Usage
"delete-vote": ({
cardId: string | number,
skipProvider?: boolean
}) => void;
Parameters
The callback for the delete-vote event receives an object with these properties:
cardId- (required) the ID of the card from which the vote will be removedskipProvider- (optional) controls whether the request to the server should be skipped
info
To work with internal events, you can refer to the Event Bus methods
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// subscribe on the "delete-vote" event
board.api.on("delete-vote", (obj) => {
console.log(obj.cardId);
});
Change log: The event was introduced in v1.4