Skip to main content

delete-card

Description

This event triggers when a card is removed.

Usage

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

Parameters

The callback for the delete-card event receives an object containing the following properties:

  • id - (required) the identifier of the card being deleted
  • skipProvider - (optional) controls whether the request to the server should be skipped
info

To manage internal 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);
});