Вопрос

I have a form controller in ExtJS 4.2.2 in which I would like to listen for a change event on any kind of form field or combobox or even a grid on the form.

What is the best way to do this. What I have now is:

    // 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
            }
        }
    });

I tried doing 'myform field|combo' but it blew up.

Это было полезно?

Решение

you are looking for myform field, myform combobox. , stands for or like in css.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top