jQuery ContextMenu DropDown

醉酒当歌 提交于 2019-12-13 05:36:05

问题


I am using this contextMenu template: http://medialize.github.com/jQuery-contextMenu/index.html

and i would like to change the place where the menu appears, i mean i want it to ALWAYS Appear from the point i click to the bottom cause sometimes the lists contains lots of items and when its appears from the point clicked to upward Most of the list Disappear. i tried looking at the documentation and i came across the $.ui.position but i dont know if thats it and actually i didnt understand it.

Thanks In advance.


回答1:


$('.item').contextMenu('menu',{
    onShowMenu: function(e, menu) {
        e.pageX=100;
        e.pageY=400;
        return menu;
    }
  }
);


来源:https://stackoverflow.com/questions/13998244/jquery-contextmenu-dropdown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!