Skip to content

addSubmenu()

Add a submenu to the menu. Used to build nested, hierarchical menus.

Parameters

Once an object menu has been created, you can use the following function:

menu.addSubmenu(menu)
Parameter Type Default Description
menu Menu required The menu to nest inside this one.