getSubHeaderCellIndex

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

number getSubHeaderCellIndex(string subheaderId);

Parameters

subheaderIdstringthe id of the subheader of a swimlane

Returns

numberthe index of the cell

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
 
diagram.cellManager.getSubHeaderCellIndex("sub01"); // gets the index of the cell
 
// -> 0

Details

The count of the index starts from 0.

See also
Change log

Added in v4.0

Back to top