javascript - How do you add a double click event to a div in Extjs -
hello i'm new extjs , i'm trying add together double click event div class in extjs doesn't seem working. i'm using:
source.getheader().select('.config-panel-trigger').getel().on('dblclick', function () as shown below
oncontainerafterrender: function (source) { // add together double click event handler on render if (source.getheader() != null) { source.getheader().select('.config-panel-trigger').getel().on('dblclick', function () { //the line of code isn't working controllers.initialize(tv.constants.constant.containermenuoptions.configure, function () { this.showcontainerconfigurationdialog(source); }, this); }, this); } this.loadconfigdata(source); },
you can seek in afterrender
this.mon(ext.select('.config-panel-trigger'), 'dbclick', function(){....}, this);
javascript extjs extjs4
No comments:
Post a Comment