TreeStore.js 507 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. *
  3. *
  4. *
  5. */
  6. Ext.define('erp.store.TreeStore', {
  7. extend: 'Ext.data.TreeStore',
  8. alias:'widget.erpTreeStore',
  9. root : {
  10. text: 'root',
  11. id: 'root',
  12. expanded: true
  13. }
  14. });
  15. /*Ext.define('erp.store.TreeStore', {
  16. extend: 'Ext.data.TreeStore',
  17. alias: 'widget.erpTreeStore',
  18. autoLoad: true,
  19. root : {
  20. expanded: true,
  21. children: []
  22. },
  23. proxy:{
  24. type: 'ajax',
  25. url: basePath + 'system/tree.action',
  26. reader: {
  27. type: 'json',
  28. root: 'tree'
  29. }
  30. }
  31. });*/