Skip to main content

CellManager overview

The DHTMLX Diagram library provides you with a set of API to manipulate a swimlane and its cells dynamically. The API can be used both in the diagram and in the editor.

Methods

NameDescription
add()adds cells as rows or columns to a swimlane
getCellId()returns the id of the cell of the swimlane by the index
getCellIndex()returns the index of the cell of the swimlane by the id
getSubHeaderCellId()returns the id of the cell of the swimlane by the subheader id
getSubHeaderCellIndex()returns the index of the cell of the swimlane by the subheader id
getSubHeaderType()returns the type of direction to count the index by the subheader id of the swimlane
move()moves cells of the swimlane as rows or columns
remove()removes cells of the swimlane as rows or columns
resetSwimlane()resets active swimlane
setSwimlane()sets active swimlane for further actions with it
validation()validates cells of the swimlane by the direction and action type

Events

NameDescription
afterCellsAddfires after new cells are added to a swimlane
afterCellsMovefires after cells of the swimlane are moved
afterCellsRemovefires after cells of the swimlane are removed
afterCellsValidationfires after cells of the swimlane are validated
beforeCellsAddfires before new cells are added to a swimlane
beforeCellsMovefires before cells of the swimlane are moved
beforeCellsRemovefires before cells of the swimlane are removed
beforeCellsValidationfires before cells of the swimlane are validated