lundi 2 mars 2015

extend: 'Ext.data.Model'

As per the Ext JS 5.1 guide, and 'Data Package' recommendation:

Is there a way to extend 'Ext.data.Model' as a common base class and then configure certain aspects for all models using a 'Schema' component.


I'm trying to mimic the doc examples using Architect 3.1 without much success, and starting to wonder if I'm trying to do something that is as of now unsupported or incomplete.


And somewhat related, since it would be next step, how does one create Associations via the schema using 'entityName'. The toolbox shows 'HasMany Association (Legacy)' so am I correct in assuming there is another (modern)model way to declare an association between two models.


Thx

Dennis






extend: 'Ext.data.Model'

Aucun commentaire:

Enregistrer un commentaire