Skip to content

Archive Trac demo app newmod

madscatt edited this page Jun 20, 2026 · 1 revision

Demo App Newmod

Legacy Trac archive page imported from demo_app_newmod. Source: https://genapp.rocks/wiki/wiki/demo_app_newmod. Review age, links, and examples before treating as current.

3. Demo GenApp Application

d. Modifying Demo Application

Adding New Module

To add new module to the application do the following:

  • edit {{{menu.json}}}
  • add JSON section for a new module "New Energy":
     { 
         "id"    : "energy",
         "label" : "New Energy"
     } 

so the resulting {{{menu.json}}} looks as follows:

# this is a project menu file
  {
    "menu" : [
              { 
               "id"      : "simulate",
               "label"   : "Simulate",
               "icon"    : "pngs/simulate.png",
               "modules" : [ 
                            { 
                             "id"    : "penergy",
                             "label" : "Energy"
                            }
                           ,{                             <--- BEGINNING of the "energy" module section
                             "id"    : "energy",           
                             "label" : "New Energy"
                            }                             <--- END of the "energy" module section 
                           ]
               }
             ]
  }

demo_site_modules.png

Previous | Up | Next

Clone this wiki locally