跳转到主要内容

onBeforeEventDragIn

Description

在被拖动的事件进入 scheduler 区域之前触发

onBeforeEventDragIn: (id: string, e: Event) => boolean

Parameters

  • id - (required) string - 事件的 id
  • e - (required) Event - 原生事件对象

Returns

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

Example

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

Details

注释

此事件仅在不同 scheduler 之间进行拖放操作时触发。

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.