Skip to main content

onBeforeEventCreated

Description

Fires when the user creates a new event by dragging the cursor over the scheduler

onBeforeEventCreated: (e: Event) => boolean

Parameters

  • e - (required) Event - a native event object

Returns

  • result - (boolean) - defines whether the default action of the event will be triggered (true) or canceled (false)

Example

scheduler.attachEvent("onBeforeEventCreated", function (e){
//any custom logic here
return true;
});

Details

Note, the event will fire only if the drag_create configuration option is enabled.

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.