跳转到主要内容

onBeforeEventDisplay

Description

在调用 'showEvent' 方法显示特定事件之前触发,允许您在事件出现之前运行代码。

onBeforeEventDisplay: (event: object, view: string) => boolean

Parameters

  • event - (required) object - 事件对象
  • view - (required) string - 用于显示事件的视图名称

Returns

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

Example

scheduler.attachEvent("onBeforeEventDisplay", function(event,view){
//这里编写自定义逻辑
return true;
});
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.