|
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:
Results
The 'rbaddmenutree' method returns structure:
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>
|
|
(loadtime : 12ms) |