Personnel.js 669 B

12345678910111213141516171819202122
  1. Ext.define('uas.store.Personnel', {
  2. extend: 'Ext.data.Store',
  3. alias: 'store.personnel',
  4. model: 'uas.model.Personnel',
  5. data: { items: [
  6. { name: 'Jean Luc', email: "jeanluc.picard@enterprise.com", phone: "555-111-1111" },
  7. { name: 'Worf', email: "worf.moghsson@enterprise.com", phone: "555-222-2222" },
  8. { name: 'Deanna', email: "deanna.troi@enterprise.com", phone: "555-333-3333" },
  9. { name: 'Data', email: "mr.data@enterprise.com", phone: "555-444-4444" }
  10. ]},
  11. proxy: {
  12. type: 'memory',
  13. reader: {
  14. type: 'json',
  15. rootProperty: 'items'
  16. }
  17. }
  18. });