I am trying to allow the user to either left click or right click on an event in the dayGrid view of FullCalendar. Left clicking should (and does) bring up some information about the event, while right clicking should provide a custom context menu that I can link to other parts of the application (such as edit or delete the event).
I cannot get the right click functionality to work, as the eventClick method only responds to a left-click. I have tried to use the mousedown method but I cannot seem to get it to work.
Ideally I would have something that works just like the code in this fiddle: https://jsfiddle.net/p52gohwn/
This code doesn't work for FullCalendar v4, however, because it relies on the element
attribute of the eventRender method, which is no longer available in FullCalendar v4 (only info
is available).