跳到主要内容

afterAction

描述

在操作执行完成后触发

用法

afterAction: (action: string, config: object) => void;

参数

事件的 callback 接收以下参数:

  • action - (必填)操作名称。查看可用操作的完整列表,请参阅此处
  • config - (必填)包含操作参数的对象

示例

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
// 配置参数
});
spreadsheet.parse(dataset);

spreadsheet.events.on("afterAction", (actionName, config) => {
if (actionName === "sortCells") {
console.log(actionName, config);
}
});

更新日志: 在 v4.3 中新增

相关文章: