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 triggered only when left mouse button is clicked. I was thinking something like
dayClick: function(date, allDay, jsEvent){
if (jsEvent.button === 1){
//show menu
}else{
//do something with day
}
}
but dayClick isn't triggered when right mouse is clicked....Any other ideas?
$(document).on('contextmenu','.day',function(e){ e.preventDefault(); // code here });
– A. Wolff