moves cells of the swimlane as rows or columns

void move(number cellIndex,"up"|"down"|"left"|"right" dir);


cellIndexnumberthe start index of a cell in a layout
dir"up"|"down"|"left"|"right"the direction of the action


// initialization of the diagram
const diagram = new dhx.Diagram("diagram_container", {
    // config options
diagram.cellManager.setSwimlane("main"); // sets active swimlane
diagram.cellManager.move(0, "down"); // moves cells as rows


The count of the index starts from 0.

The move method is automatically validated by the system. The cell won't be moved if it is not possible according to the structure of the swimlane.

See also
Change log

Added in v4.0

Back to top