PDA

View Full Version : ExtJs5.3 - Ext.data.Model.getField/getFields undocumented



AndreasLivet
28 Oct 2016, 6:10 AM
Hi,

While searching for a way to borrow some Model fields from a Model class to another, I found that the instance method getFields() internally calls a static getFields() method.

But those methods (getField and getFields) are undocumented, are they private or public ?

Thanks in advance for your help,
Andréas

mitchellsimoens
28 Oct 2016, 9:12 AM
I see them, you may have to check the Private checkbox in the upper-right corner to see private members:

55387

AndreasLivet
2 Nov 2016, 12:03 AM
I see them, you may have to check the Private checkbox in the upper-right corner to see private members:

55387

You are right ! They do not appears in my offline doc version (which I always use), neither in the source code, but they're displayed in the online doc.

Sorry for the noise.

Andréas

jazlie
16 Dec 2016, 3:10 PM
Is there any example of how to use getField? I'm trying to do model.getField('fieldname'), but the fieldMap is empty.