I found similar API in Sencha touch 2.2.1 and modified a bit to make it work in ExtJS 4.2.1
- Write following functions in ExtJS model.
- Create a model and use setData(JSON Object)
- It returns model with populated data along with the hasMany, hasOne associations. Source can be found @https://github.com/Balagangadhar/ExtJS4-Misc/blob/master/ExtJS4JsonObjectToModel.js
No comments:
Post a Comment