Skip to main content

getSubHeaderCellId()

Description​

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

Usage​

getSubHeaderCellId(subheaderId: string): string | number;

Parameters​

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

Returns​

The method returns the id of the cell

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 id of the cell
diagram.cellManager.getSubHeaderCellId("sub01"); // -> "r01"

Change log: Added in v4.0

Related article: Configuring Swimlanes