Sha256: 19b1be1d96fb7926dbbd0a786c48d5fd3ce3c4bb456a5e36bd4e0109ec221ece
Contents?: true
Size: 1.07 KB
Versions: 27
Compression:
Stored size: 1.07 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 %>', 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
27 entries across 27 versions & 1 rubygems