I'm trying to rewrite a sencha touch application from version 1.1 to version 2.
In st 1.1, i'm looping through form fields this way:
this.fields.each(function(field) {
// Code here
}, this);
In st 2, this.fields is null. Is there another way to get fields list inside a form panel ?
Thanks in advance,
you can try this
var fields = this.getFieldsArray();
Ext.each(fields, function (field) {
// code here
}, this);
or
this.getFieldsAsArray().forEach(function(field) {
// code here
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With