Edit in GitHubLog an issue

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.

ParamTypeDescription
labelstringshould be a localized string

enabled#

Set enabled state of the menu item. The state will be updated immediately, asynchronously.

ParamType
enabledboolean

checked#

Set checked state of the menu item. The state will be updated immediately, asynchronously.

ParamType
checkedboolean

remove()#

Remove the menu item

Copyright © 2021 Adobe. All rights reserved.