delete-row
Description
Fires when removing a row
Usage
"delete-row": ({
id: string | number,
skipProvider?: boolean
}) => void;
Parameters
The callback of the delete-row event can take an object with the following parameter:
id
- (required) the ID of the row to be deletedskipProvider
- (optional) enables/disables preventing the request from being sent to the server
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 "delete-row" event
board.api.on("delete-row", (obj) => {
console.log(obj.id);
});