2 * @example Simple Store
4 * This example creates a simple store that auto-loads its data from an ajax
5 * proxy. Since we are only dealing with data there is no UI, so a global
6 * variable called "userStore" is created which is an instance of
7 * {@link Ext.data.Store}.
9 * Feel free to experiment with the "userStore" object on the console command
10 * line. For example - `userStore.getCount()` gets the total number of records
11 * in the store. `userStore.getAt(0)` gets the record at index 0.
14 extend: 'Ext.data.Model',
16 {name: 'id', type: 'int'},
17 {name: 'name', type: 'string'}
22 Ext.require('Ext.data.Store');
23 Ext.onReady(function() {
24 userStore = Ext.create('Ext.data.Store', {
30 url: 'data/users.json',
34 successProperty: 'success'