Created
July 13, 2012 13:57
-
-
Save tonysm/3105016 to your computer and use it in GitHub Desktop.
Example of extjs store
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define('MyApp.store.Users', { | |
extend: 'Ext.data.Store', | |
requires: ['MyApp.model.User'], | |
model: 'MyApp.model.User', | |
storeId: 'Users', | |
autoLoad: true, | |
proxy: { | |
type: 'ajax', | |
url: 'php/users/index.json', | |
reader: { | |
type:'json', | |
root: 'users' | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment