Перейти к основному содержимому

onBeforeEventCreated

Description

Срабатывает, когда пользователь создает новое событие, перетаскивая курсор по scheduler

onBeforeEventCreated: (e: Event) => boolean

Parameters

  • e - (required) Event - нативный объект события

Returns

  • result - (boolean) - указывает, будет ли выполнено действие по умолчанию для события (true) или оно будет отменено (false)

Example

scheduler.attachEvent("onBeforeEventCreated", function (e){
//здесь можно добавить пользовательскую логику
return true;
});

Details

Учтите, что это событие срабатывает только если включена опция конфигурации drag_create.

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.