Skip to main content

getSubHeaderCellIndex()

Description​

Returns the index of the cell of the swimlane by the subheader id

Usage​

getSubHeaderCellIndex(subheaderId: string): number;

Parameters​

  • subheaderId - (required) the id of the subheader of a swimlane

Returns​

The method returns the index of the cell. The count of the index starts from 0

Example​

// initialization of the diagram
const diagram = new dhx.Diagram("diagram_container", {
// config options
});
diagram.data.parse(data);

// sets active swimlane
diagram.cellManager.setSwimlane("main");

// gets the index of the cell
diagram.cellManager.getSubHeaderCellIndex("sub01"); // -> 0

Change log: Added in v4.0

Related article: Configuring Swimlanes