jQuery fullcalendar: contextmenu

前端 未结 3 1885
遇见更好的自我
遇见更好的自我 2021-02-04 19:57

I want to use jQuery.contextMenu:

http://abeautifulsite.net/blog/2008/09/jquery-context-menu-plugin

In jQuery.fullcalendar when I right-click on an

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 20:37

    I'm solving exactly the same problem. For me it worked doing the 2 following steps:

    1 - code

    eventRender: function(calEvent,element){
            element.bt({ ajaxPath: 'ajEvents.asp?opt=getExtendedEvent&valore=' +  calEvent.id,  trigger: 'hover', width: 200 });
            //only for tooltip
            element.contextMenu('myMenu',{bindings:{'idVoce': function(t){ alert('right click on ' + calEvent.id) } } })
        } 
    

    I presume you already have defined the myMenu div...

    2 - modify zindex in contextmenu, let's say from 500 to 2500 and from 499 to 2499. This is important if you have your calendar in a dialog window (like myself), otherwise it would go under the visible layer

提交回复
热议问题