[英]How do you add a double click event to a div in Extjs
您好,我是extjs的新手,我正在尝试向Extjs的Div类添加一个双击事件,但是它似乎没有用。 我正在使用:
source.getHeader().select('.config-panel-trigger').getEl().on('dblclick', function ()
如下所示
onContainerAfterRender: function (source) {
// Add double click event handler on render
if (source.getHeader() != null) {
source.getHeader().select('.config-panel-trigger').getEl().on('dblclick', function () { //the line of code that isn't working
Controllers.initialize(TV.constants.Constant.ContainerMenuOptions.Configure, function () {
this.showContainerConfigurationDialog(source);
}, this);
}, this);
}
this.loadConfigData(source);
},
您可以在afterRender中尝试
this.mon(Ext.select('。config-panel-trigger'),'dbclick',function(){....},this);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.