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

checkEvent

Description

Проверяет, назначены ли обработчики для конкретного события

checkEvent: (name: SchedulerEventName) => boolean

Parameters

  • name - (required) SchedulerEventName - имя события

Returns

  • isExist - (boolean) - возвращает true, если хотя бы один обработчик назначен на событие

Example

scheduler.attachEvent("onEventSave",function(id,data){
if (data.text.length < 20) {
alert("Text too small");
return false;
}
return true;
})
...
scheduler.checkEvent("onEventSave"); //возвращает '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.