class Menu

Extends:
UIComponent, MenuItem

Description:

Menu UI component is used to create menus in a menu bar or create a submenu in context menu. It extends MenuItem class.
Menu object can be added to MenuBar, ContextMenu, or another Menu object to create a submenu.

Constructor

constructor([text])

Constructor for Menu, MenuItem, CheckBoxMenuItem, and RadioButtonMenuItem.

Parameters:

Name Type Description

[text]

string

Text displayed in the menu item

Members

Methods

From this class:

Inherited from UIComponent:

Inherited from MenuItem: