【问题标题】:Extjs controller select to listen to event on multiple types of componentsExtjs 控制器选择监听多种组件的事件
【发布时间】: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',但失败了。

【问题讨论】:

  • combobox extends 字段,所以你只需要第一个。
  • @Evan 好点,但问题仍然存在,因为我 htmleditor 没有。

标签: javascript css extjs controller extjs4.2


【解决方案1】:

您正在寻找myform field, myform combobox, 在 css 中代表或喜欢。

【讨论】:

    猜你喜欢
    • 2011-09-18
    • 1970-01-01
    • 2018-06-01
    • 2018-11-20
    • 1970-01-01
    • 2012-11-27
    • 1970-01-01
    • 1970-01-01
    • 2016-06-17
    相关资源
    最近更新 更多