Skip to main content

setSwimlane()

Description

Sets active swimlane for further actions with it

Usage

setSwimlane(id: string | number): boolean;

Parameters

  • id - (required) the id of the swimlane

Returns

The method returns true 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

Change log: Added in v4.0

Related articles: Configuring Swimlanes