Skip to main content

delete-card

Description

Fires when removing a card

Usage

"delete-card": ({ 
id: string | number,
skipProvider?: boolean
}) => void;

Parameters

The callback of the delete-card event can take an object with the following parameter:

  • id - (required) the ID of the card to be deleted
  • skipProvider - (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-card" event
board.api.on("delete-card", (obj) => {
console.log(obj.id);
});