Skip to main content

add-vote

Description

Fires when a user adds a new vote

Usage

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

Parameters

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

  • cardId - (required) the ID of the card, to which the vote to be added
  • 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 "add-vote" event
board.api.on("add-vote", (obj) => {
console.log(obj.cardId);
});

Change log: The event was added in v1.4