getSubHeaderCellId

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

string|number getSubHeaderCellId(string subheaderId);

Parameters

subheaderIdstringthe id of the subheader of a swimlane

Returns

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

Details

The count of the index starts from 0.

See also
Change log

Added in v4.0

Back to top