getSubHeaderType

returns the type of direction to count the index by the subheader id of the swimlane

"row"|"col"|undefined getSubHeaderType(string subheaderId);

Parameters

subheaderIdstringthe id of the subheader of a swimlane

Returns

"row"|"col"|undefinedthe type of direction to count the index

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.getSubHeaderType("sub01"); // gets the type of direction
 
// -> "row"

Details

The count of the index starts from 0.

See also
Change log

Added in v4.0

Back to top