NavigationView.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Ext.define('erp.view.sys.NavigationView',{
  2. extend: 'Ext.view.View',
  3. alias: 'widget.navigationview',
  4. overItemCls: 'x-view-over',
  5. trackOver: true,
  6. border:false,
  7. autoShow: true,
  8. title:'导航',
  9. bodyStyle:'background-color:red;',
  10. itemSelector:'div.ux-desktop-shortcut',
  11. style: {
  12. position: 'absolute'
  13. },
  14. x: 0, y: 0,
  15. store: Ext.create('Ext.data.Store', {
  16. fields: [{ name: 'name' },
  17. { name: 'iconCls' },
  18. { name: 'module' }],
  19. data: [
  20. { name: '初始进度', iconCls: 'grid-shortcut', module: 'progress' },
  21. { name: '数据导入', iconCls: 'notepad-shortcut', module: 'import' },
  22. { name: '数据检查', iconCls: 'cpu-shortcut', module: 'systemstatus'}
  23. ]
  24. }),
  25. tpl: [
  26. '<tpl for=".">',
  27. '<div class="ux-desktop-shortcut" id="{name}-shortcut">',
  28. '<div class="ux-desktop-shortcut-icon {iconCls}">',
  29. '<img src="',Ext.BLANK_IMAGE_URL,'" title="{name}">',
  30. '</div>',
  31. '<span class="ux-desktop-shortcut-text">{name}</span>',
  32. '</div>',
  33. '</tpl>',
  34. '<div class="x-clear"></div>'
  35. ],
  36. initComponent : function(){
  37. this.callParent(arguments);
  38. }
  39. });