set-edit
Description
Fires when toggling an editor
Usage
"set-edit": ({ cardId: string | number } | null) => void;
Parameters
The callback of the set-edit event can take the null value or an object with the following parameter:
cardId
- (required) the ID of the card to be edited
note
The null value is used when closing editor
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 "set-edit" event
board.api.on("set-edit", (obj) => {
console.log(obj);
});
Change log: The event was added in v1.2