跳转到主要内容

onBeforeLightbox

Description

在用户打开lightbox(编辑表单)之前触发

onBeforeLightbox: (id: string) => boolean

Parameters

  • id - (required) string - 事件的id

Returns

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

Example

scheduler.attachEvent("onBeforeLightbox", function (id){
// 可以在这里添加自定义逻辑
return true;
});

Details

此事件可以被阻止。返回false将阻止默认行为(打开lightbox)。

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.