I did read through the documentation on this but I am still confused by it.
I want 2 panels in my plugin. I see how to create the addition panel objects in the manifest Entrypoints array. I did that and have 2 panels. However, the second panel is empty when it opens.
What I don’t understand is where do I link the .html file to the second panel? The HTML file in the manifest is under “main” but that is not inside the entrypoints. So do both panels always share one .html file? If so, I’m confused about what I am suppose to do to differentiate what part of the html goes into each panel. Is this done through JS and CSS to hide/show html elements or something along those lines?
I could develop two panels on Photoshop UXP with Vanilla JS.
like the link below
but as a conclusion, I couldn’t find any
way to load two HTML files.
therefore I added through js like appendChild method or something.
and keeping empty inside of body element on HTML.
but it’s so inconvenient.
You can also use the <uxp-panel panelid="xyz"> element in your HTML file (not quite “assigning its own HTML file”, but with the same effect) to achieve this without JS:
I didn’t know about the uxp-panel tag. I had actually already tried that exact thing with div tags using the ID, but that didn’t work.
I’m not sure if this info is in the documentation anywhere. I couldn’t find it if it was. It really should be added to the docs if it isn’t already there.
Thanks for your help with this. The uxp-panel tag options works. Not sure if this is in the docs because I never found anything about it. So without knowing about the tag, it would be impossible to figure out.