admin管理员组文章数量:1341855
For some reason I need to know when user has selected value from bobox even if it is already selected. "Select" event works only if user selects unselected item. I don't see any event like "itemclick" in the docs for bobox or picker. Any ideas?
For some reason I need to know when user has selected value from bobox even if it is already selected. "Select" event works only if user selects unselected item. I don't see any event like "itemclick" in the docs for bobox or picker. Any ideas?
Share Improve this question edited Mar 11, 2013 at 13:24 Dawid Mazur asked Mar 8, 2013 at 16:50 Dawid MazurDawid Mazur 631 gold badge2 silver badges8 bronze badges1 Answer
Reset to default 11ComboBox
uses BoundList for representing dropdown list. BoundList
fires itemclick event. You can use ComboBox
's listConfig config in order to setup BoundList
listeners:
Ext.create('Ext.form.ComboBox', {
// ...
listConfig: {
listeners: {
itemclick: function(list, record) {
alert(record.get('name') + ' clicked');
}
}
}
}
Check out the demo.
本文标签: javascriptExtJS 4 Combobox event for selecting selected valueStack Overflow
版权声明:本文标题:javascript - ExtJS 4 Combobox event for selecting selected value - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743660300a2517832.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论