beforeCellsAdd

fires before new cells are added to a swimlane

boolean beforeCellsAdd(string|number swimlaneId){ ... };

Parameters

swimlaneIdstring|numberthe id of the item

Returns

booleanfalse - to prevent adding of new cells, otherwise true

Example

diagram.events.on("beforeCellsAdd", (swimlaneId) => {
    console.log(swimlaneId);
    return true;
});

See also
Change log

Added in v4.0

Back to top