]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('AM.store.Users', {\r |
2 | extend: 'Ext.data.Store',\r | |
3 | model: 'AM.model.User',\r | |
4 | autoLoad: true,\r | |
5 | \r | |
6 | proxy: {\r | |
7 | type: 'ajax',\r | |
8 | api: {\r | |
9 | // These are static JSON files that never change. In a real system\r | |
10 | // they will normally point to a page that gets processed on the server.\r | |
11 | read: 'data/users.json',\r | |
12 | update: 'data/updateUsers.json'\r | |
13 | },\r | |
14 | reader: {\r | |
15 | type: 'json',\r | |
16 | rootProperty: 'users',\r | |
17 | successProperty: 'success'\r | |
18 | }\r | |
19 | }\r | |
20 | }); |