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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| afterCellsAdd | Fires after new cells are added to a swimlane |
| afterCellsMove | Fires after cells of the swimlane are moved |
| afterCellsRemove | Fires after cells of the swimlane are removed |
| afterCellsValidation | Fires after cells of the swimlane are validated |
| beforeCellsAdd | Fires before new cells are added to a swimlane |
| beforeCellsMove | Fires before cells of the swimlane are moved |
| beforeCellsRemove | Fires before cells of the swimlane are removed |
| beforeCellsValidation | Fires before cells of the swimlane are validated |