Skip to main content

move-row

Description

Fires when moving a row

Usage

"move-row": ({
id: string | number,
before : string | number
}) => void;

Parameters

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

  • id - (required) the ID of the row to be moved
  • before - (required) the ID of the row, the moved one will be placed before it
info

For handling the inner events you can use the Event Bus methods

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards,
rows
});
// subscribe on the "move-row" event
board.api.on("move-row", (obj) => {
console.log(obj);
});

Change log: This event was added in v1.1