attaches the handler to an inner event of dhtmlxScheduler
name | SchedulerEventName | the event's name, case-insensitive |
handler | function | the handler function |
string | id the id of the attached event handler |
scheduler.attachEvent("onEventSave",function(id,ev){
if (!ev.text) {
alert("Text must not be empty");
return false;
}
return true;
})
You can attach several handlers to the same event and all of them will be executed.
If some of handlers will return false - the related operation will be blocked.
Event handlers are processed in the same order that they were attached.