Edit in GitHubLog an issue

UxpMenuItems

Class describing the menu of a panel.

size ⇒ Number

Get number of menu items

Returns: Number

getItem(id)

Get menu item with specified id

Returns: UxpMenuItem

ParamType
id
string

getItemAt(index)

Get menu item at specified index

Returns: UxpMenuItem

ParamType
index
Number

insertAt(index, newItem)

Inserts/replaces the menu item at the specified index with the new menu item. index < size of menuItems array : replaces the existing menu item index = size of menuItems array : Inserts menu item at end index > size of menuItems array : throws invalid index exception

ParamTypeDescription
index
Number
newItem
Object
see 'entrypoints.setup' api for menu item description.

removeAt(index)

Removes menu item from specified index.

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