我在 ExtJS 4.2.2 中有一个表单 Controller ,我想在其中监听任何类型的表单字段或组合框甚至表单上的网格上的更改事件。
执行此操作的最佳方法是什么。我现在拥有的是:
// 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'
但它爆炸了。
最佳答案
您正在寻找 myform 字段,myform 组合框
。 ,
在css中代表or like。
关于javascript - Extjs Controller 选择监听多种类型组件的事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22946379/