jQuery ContextMenu下拉菜单 [英] jQuery ContextMenu DropDown

查看:127
本文介绍了jQuery ContextMenu下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此contextMenu模板: http://medialize.github.com/jQuery -contextMenu/index.html

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

,我想更改菜单出现的位置,我的意思是我希望它从我单击到底部的位置始终出现,因为有时列表包含很多项目,并且从单击到向上的位置出现大部分列表消失了.我尝试查看文档,但碰到了$.ui.position,但我不知道是不是这样,而实际上我不理解.

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.

谢谢.

推荐答案

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

这篇关于jQuery ContextMenu下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆