跳到主要内容

afterCellsValidation

描述

在 swimlane 的单元格完成验证后触发

用法

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

参数

该事件的回调函数接受以下参数:

  • swimlaneId - (必需)该项目的 id
  • validate - (必需)是否通过验证
  • action - (必需)操作的类型

示例

// 初始化 Diagram
const diagram = new dhx.Diagram("diagram_container", {
type: "default"
});
// 加载数据
diagram.data.parse(data);

// 为事件绑定处理程序
diagram.events.on("afterCellsValidation", (swimlaneId, validate, action) => {
console.log(swimlaneId, validate, action);
});

更新日志:v4.0 中新增

相关文章配置 Swimlanes