Ext右键菜单的创建与现实
2011-10-20 14:19
302 查看
创建右键菜单
var leafMenu = new Ext.menu.Menu({
items:[
{
text:"删除",
handler:function(){
}
},
{
text:"查看基本信息",
handler:function(){
}
},
{
text:"查看类别信息",
handler:function(){
}
}
]
})
右键事件
contextmenu:function(n,e){
node=n;
leafMenu.showAt(e.getPoint());
}
var leafMenu = new Ext.menu.Menu({
items:[
{
text:"删除",
handler:function(){
}
},
{
text:"查看基本信息",
handler:function(){
}
},
{
text:"查看类别信息",
handler:function(){
}
}
]
})
右键事件
contextmenu:function(n,e){
node=n;
leafMenu.showAt(e.getPoint());
}
相关文章推荐
- QT 创建鼠标右键菜单
- QT 创建鼠标右键菜单
- Unity Project面板右键菜单创建lua文件
- Ext 4.2 添加右键菜单
- 右键菜单的创建总结
- 创建右键菜单
- QT 创建鼠标右键菜单
- Ext 根据来自后端的菜单数据创建树和节点
- 创建右键菜单;加载菜单资源; WM_CONTEXTMENU;PtInRect(判断点是否在矩形内);ScreenToClient;DefWindowProc
- Java与Flex学习笔记(18)----Flex中创建右键菜单
- ShowPopupMenu显示自己创建的右键菜单 不显示
- 右键菜单创建
- 在网页中自己创建右键菜单
- 创建右键菜单
- win32 创建右键菜单
- JS 屏蔽右键,创建右键菜单
- 如何创建右键弹出菜单(即ContextMenu)
- 我创建了一个托盘图标,可以正常使用,点击右键打开菜单。问题是如果点击右键后不选择其中一个菜单项进行操作的话,它就总不消失。
- 右键菜单的创建总结
- CSS+JavaScript创建右键菜单