Created
June 23, 2014 10:10
-
-
Save MihailoJoksimovic/67754eb186c3319883f1 to your computer and use it in GitHub Desktop.
This file contains 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
var store = Ext.create('Ext.data.Store', { | |
fields: ['extjs_state_user_data_id', 'user_id', 'name', 'value'], | |
autoSync: true, | |
proxy: { | |
type: 'ajax', | |
reader: { | |
type: 'json', | |
root: 'results' | |
}, | |
writer: { | |
type: 'json', | |
root: 'data', | |
encode: true, | |
allowSingle: false | |
}, | |
api: { | |
create: '/modules/core/ExtjsStateManager/create', | |
read: '/modules/core/ExtjsStateManager/load', | |
update: '/modules/core/ExtjsStateManager/update', | |
destroy: '/modules/core/ExtjsStateManager/remove' | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment