Skip to main content

checkEvent

Description

Checks whether an event has some handler(s) specified

checkEvent: (name: SchedulerEventName) => boolean

Parameters

  • name - (required) SchedulerEventName - the event's name

Returns

  • isExist - (boolean) - returns true, if some handler is specified for the event

Example

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