delete-row
Description
Triggers when a row is being removed
Usage
"delete-row": ({
id: string | number,
skipProvider?: boolean
}) => void;
Parameters
The callback for the delete-row event receives an object with the following properties:
id- (required) specifies the ID of the row that will be deletedskipProvider- (optional) controls whether the request to the server should be skipped
info
To work with internal events, you can refer to the Event Bus methods
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// listen for the "delete-row" event
board.api.on("delete-row", (obj) => {
console.log(obj.id);
});