ExtJs dynamic delegate for ComboBox
In a normal Panel in ExtJs, you can attach a delegate listener dynamically by doing the following;
cmp.el.on('click', function() {
console.log("click on span");
}, null, {delegate: 'span.testclick1'});
However, in a combobox using a custom template, I can't use this same method. I think it might be due to a listConfig that ComboBox's expect.
I say this because in the following link, it is used; http://www.sencha.com/forum/showthread.php?158991-ComboBox-custom-template-how-do-I-attach-a-click-handler
I just can't use the same format since I'm on an older version of ExtJs
Any help would be appreciated. Thanks!
Try using one of the other events for comboBox, such as expand
or focus
or select
http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.form.ComboBox-event-expand
链接地址: http://www.djcxy.com/p/19546.html上一篇: ExtJs泡泡菜单事件
下一篇: ExtJs ComboBox的动态委托