Edit in GitHubLog an issue

UxpMenuItems

Class describing the menu of a panel. Todo(tagarg) : make Iterable

size ⇒ Number#

Get number of menu items

Returns: Number

getItem(id)#

Get menu item with specified id

Returns: UxpMenuItem

ParamType
idstring

getItemAt(index)#

Get menu item at specified index

Returns: UxpMenuItem

ParamType
indexNumber

insertAt(index, newItem)#

Inserts the new menu item at the specified index.

ParamTypeDescription
indexNumber
newItemObjectsee 'entrypoints.setup' api for menu item description.

removeAt(index)#

Removes menu item from specified index.

ParamType
indexNumber
Copyright © 2021 Adobe. All rights reserved.