Skip to main content

unselect-card

Description

Triggered when a card is unselected

Usage

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

Parameters

The callback for the unselect-card event receives an object containing the following property:

  • id - (required) the ID of the card that was unselected
info

To manage internal events, you can refer to 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);
});