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 the following properties:
id- (required) the selected card's IDgroupMode- (optional) indicates multiselect mode (defaults to false)
info
To manage internal events, you can refer to the Event Bus methods
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// listen for the "select-card" event
board.api.on("select-card", (obj) => {
console.log(obj.id);
});