Skip to main content

select-card

Description

Fires when selecting a card

Usage

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

Parameters

The callback of the select-card event can take an object with the following parameters:

  • id - (required) the ID of the selected card
  • groupMode - (optional) multiselecting (false by default)
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 "select-card" event
board.api.on("select-card", (obj) => {
console.log(obj.id);
});