Products.js 482 B

12345678910111213141516171819202122
  1. Ext.define('uas.store.Products', {
  2. extend: 'Ext.data.Store',
  3. alias: 'store.products',
  4. model: 'uas.model.Product',
  5. proxy: {
  6. type: 'ajax',
  7. url: 'data/grid-filter.json',
  8. reader: {
  9. type: 'json',
  10. rootProperty: 'data',
  11. idProperty: 'id',
  12. totalProperty: 'total'
  13. }
  14. },
  15. remoteSort: false,
  16. sorters: [{
  17. property: 'company',
  18. direction: 'ASC'
  19. }],
  20. pageSize: 50
  21. });