4 * This example creates a simple store that auto-loads its data from an ajax
5 * proxy. A global variable called "userStore" is created which is an instance of
6 * {@link Ext.data.Store}. Feel free to experiment with the "userStore" object on the console command line.
9 extend: 'Ext.data.Model',
10 fields: ['firstName', 'lastName']
14 Ext.require('Ext.data.Store');
15 Ext.onReady(function() {
16 userStore = Ext.create('Ext.data.Store', {
19 {firstName: 'Ed', lastName: 'Spencer'},
20 {firstName: 'Tommy', lastName: 'Maintz'},
21 {firstName: 'Aaron', lastName: 'Conran'},
22 {firstName: 'Jamie', lastName: 'Avins'}