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 |
|---|---|---|
|
|
string |
Text displayed in the menu item |
Members
- [ readonly ] childCount
- [ readonly ] children
- [ readonly ] container
- [ readonly ] id
- [ readonly ] parent
- [ readonly ] screenPosition
Methods
From this class:
Inherited from UIComponent:
- addChild()
- addTo()
- alignment()
- background()
- bottom()
- center()
- child()
- childIndex()
- color()
- cursor()
- destroy()
- emit()
- enabled()
- focusable()
- focused()
- font()
- getAncestor()
- getWindow()
- height()
- hide()
- icon()
- iconAlignment()
- iconTextGap()
- index()
- isInside()
- onAction()
- onAncestorEvents()
- onComponentEvents()
- onContainerEvents()
- onDispose()
- onDragEvents()
- onDropEvents()
- onError()
- onFocusEvents()
- onKey()
- onMouseEvents()
- onMouseMotion()
- onMouseWheel()
- onPropertyChange()
- remove()
- snapshot()
- text()
- tooltip()
- updateUI()
- verifyComponent()
- visible()
