MainModel.js 577 B

123456789101112131415161718192021222324252627
  1. /**
  2. * This class is the view model for the Main view of the application.
  3. */
  4. Ext.define('saas.view.main.MainModel', {
  5. extend: 'Ext.app.ViewModel',
  6. alias: 'viewmodel.main',
  7. data: {
  8. navWidth: 160,
  9. smallNavWidth: 64,
  10. },
  11. stores: {
  12. navMenu: {
  13. model: 'saas.model.main.NavMenu',
  14. autoLoad: true,
  15. proxy: {
  16. type: 'ajax',
  17. url: 'resources/json/navigation.json',
  18. reader: {
  19. type: 'json'
  20. }
  21. }
  22. }
  23. }
  24. });