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, localized string

Returns: string

enabled ⇒ boolean

Get menu item enable state

Returns: boolean

checked ⇒ boolean

Get menu item checked state

Returns: boolean

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
label
string
should be a localized string

enabled

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

ParamType
enabled
boolean

checked

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

ParamType
checked
boolean

remove()

Remove the menu item

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.