Warning Older Docs! - You are viewing documentation for a previous released version of RhoMobile Suite.

Application Menu API

Customize the native application menu and controller menu items. Refer to Application Menu in Device Capabilities for examples.

@default_menu

Set this parameter list in application.rb to customize the Rhodes default menu.

@default_menu = { 
  "Item Label 1" => "/item1path", 
  "Item Label 2" => "/item2path",
   ... 
} #=> overrides the Rhodes default menu
Item Label 1 Menu action or a path to a view (.erb) file

To disable the Rhodes default menu, use an empty parameter list, as below.

@default_menu = {}

@menu

Set this parameter list in a controller.rb file to customize a controller menu.

@menu = { 
  "Item Label 1" => "/item1path", 
  "Item Label 2" => "/item2path",
   ... 
} #=> overrides the Rhodes default menu
Item Label 1 Menu action or a path to a view (.erb) file.
Back to Top