Skip to main content

update-row

Description

Fires when updating row data

Usage

"update-row": ({
id: string | number,
row?: object
}) => void;

Parameters

The callback of the update-row event can take an object with the following parameters:

  • id - (required) the ID of the row to be updated
  • row - (optional) the new data object of the row. The full list of the row parameters can be found here
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 "update-row" event
board.api.on("update-row", (obj) => {
console.log(obj);
});

Change log: The id and row parameters were added in v1.1