Skip to main content

unselect-card

Description

Fires when unselecting a card

Usage

"unselect-card": ({ id: string | number }) => void;

Parameters

The callback of the unselect-card event can take an object with the following parameter:

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