Skip to main content

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 containing the following properties:

  • cardId - (required) the ID of the card from which the vote is being removed
  • skipProvider - (optional) controls whether the request to the server should be skipped or not
info

To manage internal events, you can refer to the Event Bus methods

Example

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

Change log: This event was introduced in v1.4