Syntax:
[void] window.menu.append(MenuItem menuItem)
or
[void] menu.append(MenuItem menuItem)
Description:
Call the append
method to add a menu item to the
top level of the options menu list.
Menu items are shown on the options menu list in the order in which they are appended.
Arguments:
menuItem
:
This is an instance of the MenuItem
object
which is being added to the top level of the options menu.
Return value:
This method does not return a value.
Remarks:
Cascading submenus are created using the MenuItem
object.
See also the description of the MenuItem.append
method.
Example code:
See the example code in the description of the MenuItem.onSelect
property.