Submenus
A collection of submenus.
Instance
Read Only
Number length
The number of objects in the collection.
Methods
Submenu add( String title, LocationOptions at, MenuElement reference, Object withProperties )
Creates a new submenu.
Parameters
Type Name Description 
Number count()
Displays the number of elements in the Submenu.
Submenu item( Mixed index )
Returns the Submenu with the specified index or name.
Parameters
Type Name Description 
Submenu itemByName( String name )
Returns the Submenu with the specified name.
Parameters
Type Name Description 
Submenu itemByRange( Mixed from, Mixed to )
Returns the Submenus within the specified range.
Parameters
Type Name Description 
Submenu firstItem()
Returns the first Submenu in the collection.
Submenu lastItem()
Returns the last Submenu in the collection.
Submenu middleItem()
Returns the middle Submenu in the collection.
Submenu previousItem( Submenu obj )
Returns the Submenu with the index previous to the specified index.
Parameters
Type Name Description 
Submenu nextItem( Submenu obj )
Returns the Submenu whose index follows the specified Submenu in the collection.
Parameters
Type Name Description 
Submenu anyItem()
Returns any Submenu in the collection.
Submenu everyItem()
Returns every Submenu in the collection.
String toSource()
Generates a string which, if executed, will return the Submenu.
Submenu []( Number index )
Returns the Submenu with the specified index.
Parameters
Type Name Description