JavaScript Workbench | .addMenu()

The .addMenu() method is used to add a new custom menubar to the default menubar.

Synopsis

.addMenu(new NavBarMenu())

Arguments

NavBarMenu

Required. This is the JavaScript variable that was defined using the NavBarMenu() function to represent a new custom menubar.

Description

This method is used to add a new custom menubar to the default menubar. For examples on how to use it, refer to the Creating Custom Menubars section.