Tutorial by Examples

A model represents some data object in an application. For example you can have a model such as: Fruit, Car, Building, etc. in your application. Models are normally used by stores. Here is example how you would define a new model class. e.g. Ext.define('MyApp.model.Person', { extend: 'Ext.data...
Online demo is here: http://ext4all.com/post/extjs-4-mvc-application-architecture.html Define a model: // /scripts/app/model/User.js Ext.define('AM.model.User', { extend: 'Ext.data.Model', fields: ['id', 'name', 'email'] }); Define a store with proxy: // /scripts/app/store/Users.js...

Page 1 of 1