Does click trigger when right mouse button was clicked? I want to implement a right click kind of menu with full calendar, but it only has dayClick event, which I think is trigg
Here is the my solution for handling right click event of full calendar.Edit dayMousedown
function as follows on fullcalendar.js
dayMousedown: function(ev) {
var view = this.view;
// HACK
// This will still work even though bindDayHandler doesn't use GlobalEmitter.
if (GlobalEmitter.get().shouldIgnoreMouse()) {
return;
}
switch (ev.which) {
case 1:
this.dayClickListener.startInteraction(ev);
break;
case 2:
alert('Middle Mouse button pressed.');
break;
case 3:
// here we can handle right click functionality
this.dayRightClickListener.startInteraction(ev);
break;
default:
alert('You have a strange Mouse!');
}
if (view.opt('selectable')) {
this.daySelectListener.startInteraction(ev, {
distance: view.opt('selectMinDistance')
});
}
}
And I implemented dayRightClickListener
function to handle my requirement.