Skip to main content

select-card

Description

Triggered when a card is selected

Usage

"select-card": ({
id: string | number,
groupMode?: boolean
}) => void;

Parameters

The callback for the select-card event receives an object with these properties:

  • id - (required) the ID of the card that was selected
  • groupMode - (optional) indicates multiselect mode (defaults to false)
info

To manage internal events, you can use the Event Bus methods

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// subscribe on the "select-card" event
board.api.on("select-card", (obj) => {
console.log(obj.id);
});