Hello I'm new to extjs and I'm trying to add a double click event to a Div class in Extjs but it doesn't seem to be working. I'm using:
source.getHeader().select('.config-panel-trigger').getEl().on('dblclick', function ()
as shown below
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);
},
You can try this in afterRender
this.mon(Ext.select('.config-panel-trigger'), 'dbclick', function(){....}, this);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.