Sha256: 75c20e3e4f3a5cde24a81df5b587c6ca2a420bfc3a342dc140aa4f089f33d299
Contents?: true
Size: 1.08 KB
Versions: 6
Compression:
Stored size: 1.08 KB
Contents
Ext.ns("Compass.ErpApp.Organizer.Applications.<%= class_name %>"); /** * Method to setup organizer application * @param {config} object containing (organizerLayout : reference to main layout container, widgetRoles : roles for widgets contained in this application) */ Compass.ErpApp.Organizer.Applications.<%= class_name %>.Base = function(config){ var treeMenuStore = Ext.create('Compass.ErpApp.Organizer.DefaultMenuTreeStore', { url:'/erp_app/organizer/<%= file_name %>/menu', rootText:'Menu', rootIconCls:'icon-content' }); var menuTreePanel = { xtype:'defaultmenutree', title:'<%= class_name %>', store:treeMenuStore, menuRootIconCls:'icon-content', rootNodeTitle:'Menu', treeConfig:{ store:treeMenuStore } }; var examplePanel = new Ext.Panel({id:'<%= file_name %>_example_panel', html:'Put your content here', layout:'fit'}); this.setup = function(){ config['organizerLayout'].addApplication(menuTreePanel, [examplePanel]); }; };
Version data entries
6 entries across 6 versions & 1 rubygems