Skip to main content

delete-link

Description

Fires when removing a link

Usage

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

Parameters

The callback of the delete-link event can take an object with the following parameters:

  • id - (required) the ID of the link 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,
links
});
// subscribe on the "delete-link" event
board.api.on("delete-link", (obj) => {
console.log(obj.id);
});

Change log: The event was added in v1.4