Skip to main content

onBeforeLightbox

Description

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

onBeforeLightbox: (id: string) => boolean

Parameters

  • id - (required) string - the event's id

Returns

  • result - (boolean) - defines 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;
});

Details

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

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.