Whitebeam Library Definition

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Library Definition

Method Description

rbaddmenutree()

Adds a menu tree (new one or sub of an existing menu item) from a hierarchy of menu definitions.

See Also

rbaddmenulist()   

Syntax

menuinfo = rbaddmenutree(tag)

Parameters

The 'rbaddmenutree' method takes 1 parameter:

Name Type/Value Range/Length Description
tagarray of struct menuinfossee definition Required. Tag tree object of menu items.

Results

The 'rbaddmenutree' method returns structure:

Type/Value Range/Length Description
struct menuinfo see definition The first item in the menu tree.

Remarks

A multi-level menu tree defined with <rbm:menuitem> tags is equivalent to a complex structure with each menu item as an array having its own set of attributes and its sub menu items (level+1) as array elements.

For example, a sub menu tree can be attached (to an existing menu item key="4a") as follows:

var tag = new Array;
tag.parent = "4a";

var tag2 = new Array;
tag2.key = "5a";
tag2.name = "a - Level 5";
tag2.href = "/a5.rhtm";
tag.push(tag2);

var tag3 = new Array;
tag3.key = "5b";
tag3.name = "b - Level 5";
tag3.href = "/b5.rhtm";
tag.push(tag3);

rbaddmenutree(tag);

This is equivalent to:

<rbm:menuitem parent="4a">
  <rbm:menuitem key="5a" name="a - level 5" href="/a5.rhtm"/>
  <rbm:menuitem key="5b" name="b - level 5" href="/b5.rhtm"/>
</rbm:menuitem>

Whitebeam release 1.3.36
(loadtime : 12ms)