getCellId()
Description
Returns the id of the cell of the swimlane by the index
Usage
getCellId(
cellIndex: number,
type: string // "row" | "col"
): string | number | undefined;
Parameters
cellIndex
- (required) the start index of a cell in a layout. The count of the index starts from 0type
- (required) the type of direction to count the index: "row" | "col"
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.getCellId(0, "row"); // -> "r01"
Change log: Added in v4.0
Related articles: Configuring Swimlanes