【发布时间】:2014-04-08 19:24:05
【问题描述】:
我在 ExtJS 4.2.2 中有一个表单控制器,我想在其中监听任何类型的表单字段或组合框甚至表单上的网格上的更改事件。
最好的方法是什么。我现在拥有的是:
// Form event subscriptions
this.control({
'myform field' : {
change : function(field, newValue, oldValue, eOpts) {
// do work here
},
'myform combobox' : {
change : function(field, newValue, oldValue, eOpts) {
// do work here
}
}
});
我尝试过'myform field|combo',但失败了。
【问题讨论】:
-
comboboxextends 字段,所以你只需要第一个。 -
@Evan 好点,但问题仍然存在,因为我
htmleditor没有。
标签: javascript css extjs controller extjs4.2