moveRow()
Description
Shifts a row to a new position
Usage
moveRow({
id: string | number,
before?: string | number
}): void;
Parameters
id- (required) the ID of the row that needs to be movedbefore- (optional) the ID of the row that the moved row will be placed in front of. If this parameter is omitted, the row will be moved to the end of the board
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards,
row
});
// move the "task" swimlane and place it before (above) the "feature" one
board.moveRow({
id: "task",
before: "feature"
});
Change log: The method was added in v1.1