UxpMenuItem
Class describing a single menu item of a panel
id ⇒ string
#
Get menu item id
Returns: string
label ⇒ string
#
Get menu item label
Returns: string
- - a localized string
enabled ⇒ boolean
#
Get menu item enable state
Returns: boolean
checked ⇒ boolean
#
Get menu item checked state
Returns: boolean
submenu ⇒ UxpMenuItems
#
Get menu submenu
Returns: UxpMenuItems
parent ⇒ UxpMenuItems
#
Get menu parent.
Returns: UxpMenuItems
label#
Set label of the menu item. The label will be updated immediately, asynchronously.
Param | Type | Description |
---|---|---|
label | string | should be a localized string |
enabled#
Set enabled state of the menu item. The state will be updated immediately, asynchronously.
Param | Type |
---|---|
enabled | boolean |
checked#
Set checked state of the menu item. The state will be updated immediately, asynchronously.
Param | Type |
---|---|
checked | boolean |
remove()#
Remove the menu item