beforeCellsValidation

fires before cells of the swimlane are validated

boolean beforeCellsValidation(string|number swimlaneId,"move"|"remove"|"add" action){ ... };

Parameters

swimlaneIdstring|numberthe id of the item
action"move"|"remove"|"add"the type of the action

Returns

booleanfalse - to prevent validation of new cells, otherwise true

Example

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

See also
Change log

Added in v4.0

Back to top