listeners: {
                render: function(c) {
                c.body.on('click', function() { 
                   //TODO 添加点击事件功能                  
                    });
                c.body.on('contextmenu',function(e){
                    e.preventDefault();//阻止浏览器默认右键菜单
                    customMenu.showAt(e.getXY());//展示自定义菜单
                    });
                },
                scope: this
            },

Extjs4.2 panel 组件默认无 click 及 contextmenu 事件,使用上述方法可添加相关的监听事件

相关文章:

  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-05
  • 2022-12-23
  • 2021-12-06
  • 2021-10-19
  • 2022-01-03
  • 2021-10-15
相关资源
相似解决方案