Adding A Menu To A UXP Plugin

I want to add a menu to a plugin which shows in the Plugins Panel like this

but I cant seem to find any documentation or example files to look at. My understanding is that a menu can only be added when the manifest is configured to be a Panel and not a Command but I may be wrong on this.

Has anyone got any examples on adding menus like this please

Ian

Alchemist is actually open-source so here you can find one part of that: https://github.com/jardicc/alchemist/blob/master/uxp/manifest.json#L48

and here is the second part: https://github.com/jardicc/alchemist/blob/master/src/shared/classes/Main.ts#L21

So you need to define that in manifest and then listen “uxpcomand” event on the document element.

1 Like

@Jarda Than

ThankYou, this really was helpful in letting me understand how this is achieved through the entrypoints of the manifest file.