Skip to content

Instantly share code, notes, and snippets.

@AlexTiTanium
Created January 9, 2013 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexTiTanium/4497373 to your computer and use it in GitHub Desktop.
Save AlexTiTanium/4497373 to your computer and use it in GitHub Desktop.
Ext.define('Shop.store.ProductsStore', {
extend:'Ext.data.Store',
storeId:'ProductsStore',
autoSync:true,
model:'Shop.model.ProductModel',
pageSize: 15,
remoteSort: true,
proxy:{
type:'ajax',
api:{
read:'/admin/shop/products.json',
create:'/admin/shop/product/create.json',
update:'/admin/shop/product/update.json',
destroy:'/admin/shop/product/destroy.json'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment