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

Version Path
erp_app-3.1.10 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.1.9 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.1.8 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.1.7 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.1.6 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.1.5 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.1.4 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.1.3 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.1.2 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.0.16 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.0.15 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.1.1 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.1.0 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.0.14 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.0.13 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.0.12 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.0.10 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.0.9 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.0.8 lib/generators/organizer_application/templates/public/base.js.erb
erp_app-3.0.7 lib/generators/organizer_application/templates/public/base.js.erb