onBeforeLightbox

fires immediately before the user opens the lightbox (edit form)

boolean onBeforeLightbox(string id);
idstringthe event's id
booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Example

scheduler.attachEvent("onBeforeLightbox", function (id){
    //any custom logic here
    return true;
});

Related samples

Details

The event is blockable. Return false to cancel the default processing (opening of the lightbox).

Back to top