Skip to main content

CellManager overview

The DHTMLX Diagram library provides you with a set of APIs 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 the subheader of the swimlane by its id
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