UxpMenuItem
UxpMenuItem()
Class describing a single menu item of a panel
id : string
Read only Get menu item id
label ⇒ string
Get menu item label, localized string
Returns: 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
stringshould be a localized string
enabled
Set enabled state of the menu item. The state will be updated immediately, asynchronously.
Param
Type
enabled
booleanchecked
Set checked state of the menu item. The state will be updated immediately, asynchronously.
Param
Type
checked
booleanremove()
Remove the menu item