Skip to main content

delete-vote

Description

Fires when a user deletes a vote from a card

Usage

"delete-vote": ({
cardId: string | number,
skipProvider?: boolean
}) => void;

Parameters

The callback of the delete-vote event can take an object with the following parameters:

  • cardId - (required) the ID of the card, from which the vote to be deleted
  • skipProvider - (optional) enables/disables preventing the request from being sent to the server
info

For handling the inner events you can use 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 added in v1.4