Skip to main content

api.exec()

Description

allows triggering the inner events

Usage

api.exec(
event: string,
config: object
): void;

Parameters

  • event - (mandatory) an event to be fired
  • config - (mandatory) the config object with parameters (see the event to be fired)

Events

info

The full list of the Kanban internal events can be found here

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// select the card with the 1 ID
board.api.exec("select-card", { id: 1 });