remove()
info
The remove() method is automatically validated by the system. The cell won't be removed if it is not possible according to the structure of the swimlane.
Description
Removes cells of the swimlane as rows or columns
Usage
remove(
cellIndex: number,
type: string // "row" | "col"
): void;
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
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.remove(0, "row"); // removes cells as rows
Change log: Added in v4.0
Related articles: Configuring Swimlanes