Skip to main content

onContextMenu

Description​

Fires when the user calls the context menu by clicking the right mouse button inside the scheduler

onContextMenu: (id: string, e: Event) => void;

Parameters​

  • id - (required) string - the event's id
  • e - (required) Event - a native event object

Example​

scheduler.attachEvent("onContextMenu", function (id, e){
//any custom logic here
});

Details​

if the user clicks on an event, the handler will take the event's id, otherwise - null.

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.