Companies.js 412 B

123456789101112131415161718192021
  1. Ext.define('uas.store.Companies', {
  2. extend: 'Ext.data.Store',
  3. alias: 'store.companies',
  4. model: 'uas.model.Company',
  5. autoLoad: false,
  6. pageSize: null,
  7. remoteSort: true,
  8. proxy: {
  9. type: 'ajax',
  10. url: '/api/comanies',
  11. reader: {
  12. type: 'json',
  13. rootProperty: 'data.list',
  14. totalProperty: 'data.total',
  15. }
  16. }
  17. });