Skip to main content

afterCellsValidation

Description

Fires after cells of the swimlane are validated

Usage

afterCellsValidation: (
swimlaneId: string | number,
validate: boolean,
action: "move" | "remove" | "add"
) => void;

Parameters

The callback of the event takes the following parameters:

  • swimlaneId - (required) the id of the item
  • validate - (required) validated or not validated
  • action - (required) the type of the action

Example

// initializing Diagram
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
// loading data
diagram.data.parse(data);

// attaching a handler to the event
diagram.events.on("afterCellsValidation", (swimlaneId, validate, action) => {
console.log(swimlaneId, validate, action);
});

Change log: Added in v4.0

Related articles: Configuring Swimlanes