onBeforeEventDisplay
Description
Fires when the 'showEvent' method is called to show a specific event and fires BEFORE the event is displayed
onBeforeEventDisplay: (event: object, view: string) => boolean
Parameters
event- (required) object - the event's objectview- (required) string - the name of a view used to display the event
Returns
result- (boolean) - defines whether the default action of the event will be triggered (true) or canceled (false)
Example
scheduler.attachEvent("onBeforeEventDisplay", function(event,view){
//any custom logic here
return true;
});
Related API
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.