How Can I Make Panel Components Load Dynamically With UXP?
I'm building a UXP panel for PS. I don't want all the components to be hard-coded - I want some to load dynamically.
In one case, I'd like to give the user the option to add a component or groups of components with a "+" button.
In the other case, I'd like the type of component to be determined depending on the value of a specific field. For example, once the user selects a value for a dropdown, the respective components should become visible.
I'm not sure how to go about this - which is the best way that is supported with UXP?
