您的位置:首页 > 其它

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());

                    }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ext function