class MenuItem
- Extends:
- UIComponent
Description:
Menu item UI component that extends UIComponent class.
This class is extended by Menu, CheckBoxMenuItem, and RadioButtonMenuItem.
For more methods and properties for this component or sub-components check UIComponent class.
Constructor
constructor([text])
Constructor for Menu, MenuItem, CheckBoxMenuItem, and RadioButtonMenuItem.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
string |
Text displayed in the menu item |
Members
- [ readonly ] container
- [ readonly ] id
- [ readonly ] parent
- [ readonly ] screenPosition
Methods
From this class:
Inherited from UIComponent:
- addChild()
- addTo()
- background()
- color()
- destroy()
- emit()
- emitFocusKeyEvents()
- enabled()
- focusable()
- focused()
- font()
- getAncestor()
- getWindow()
- hide()
- icon()
- index()
- isInside()
- maxIconSize()
- maxSize()
- minIconSize()
- minSize()
- onAction()
- onAncestorEvents()
- onComponentEvents()
- onDispose()
- onError()
- onFocusEvents()
- onKey()
- onMouseEvents()
- onMouseMotion()
- onMouseWheel()
- onPropertyChange()
- remove()
- snapshot()
- text()
- tooltip()
- updateUI()
- verifyComponent()
- visible()
