跳转到主要内容

onBeforeEventDelete

Description

在用户点击删除按钮(无论是在事件栏还是详情窗口)后立即触发

onBeforeEventDelete: (id: string, ev: object) => boolean

Parameters

  • id - (required) string - 事件的id
  • ev - (required) object - 事件的数据对象

Returns

  • result - (boolean) - 决定默认事件操作是否继续执行(true)或被取消(false

Example

scheduler.attachEvent("onBeforeEventDelete", function(id,ev){
// 在这里放置任何自定义逻辑
return true;
});

Details

此事件可以被阻止。返回 false 将停止默认的删除流程。

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.