Skip to main content

move-row

Description

Triggered when a row is moved

Usage

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

Parameters

The callback for the move-row event receives an object with these properties:

  • id - (required) the ID of the row being moved
  • before - (required) the ID of the row that the moved row will be placed before
  • skipProvider - (optional) controls whether the request to the server is skipped
info

To manage internal events, you can use the Event Bus methods

Example

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

Change log: This event was introduced in v1.1