Skip to main content

getSubHeaderType()

Description

Returns the type of the subheader of the swimlane by its id

Usage

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

Parameters

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

Returns

The method returns the type of the subheader of the swimlane: "row" | "col" | undefined

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

Change log: Added in v4.0

Related articles: Configuring Swimlanes