onBeforeEventCreated

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

boolean onBeforeEventCreated(Event e);
eEventa native event object
booleandefines 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.

Back to top