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 movedbefore- (optional) the ID of the row before which the moved row will be inserted. If omitted, the row will be added at the end of the boardskipProvider- (optional) controls whether the request to the server is prevented or allowed
info
To manage internal events, you can refer to 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