setSwimlane

sets active swimlane for further actions with it

boolean setSwimlane(string|number id);

Parameters

idstring|numberthe id of the swimlane

Returns

booleantrue if the swimlane is set, otherwise false

Example

// initialization of the diagram
const diagram = new dhx.Diagram("diagram_container", {
    // config options
});
diagram.data.parse(data);
 
diagram.cellManager.setSwimlane("main"); // sets active swimlane

See also
Change log

Added in v4.0

Back to top