Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / examples / app / simple / app / store / Users.js
diff --git a/examples/app/simple/app/store/Users.js b/examples/app/simple/app/store/Users.js
new file mode 100644 (file)
index 0000000..fbf8f55
--- /dev/null
@@ -0,0 +1,18 @@
+Ext.define('AM.store.Users', {
+    extend: 'Ext.data.Store',
+    model: 'AM.model.User',
+    autoLoad: true,
+    
+    proxy: {
+        type: 'ajax',
+        api: {
+            read: 'data/users.json',
+            update: 'data/updateUsers.json'
+        },
+        reader: {
+            type: 'json',
+            root: 'users',
+            successProperty: 'success'
+        }
+    }
+});
\ No newline at end of file