duplicate-card
Description
Fires when duplicating a card
Usage
"duplicate-card": ({
id: string | number,
card?: object,
select?: boolean
}) => void;
Parameters
The callback of the duplicate-card event can take an object with the following parameters:
id
- (required) the ID of the card to be duplicatedcard
- (optional) the data object of the new card. The full list of the card parameters can be found hereselect
- (optional) enables/disables selecting new added card
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 "duplicate-card" event
board.api.on("duplicate-card", (obj) => {
console.log(obj);
});
Change log: The select
parameter was added in v1.5.10