we’re currently switching from legacy jQuery Uploader to the new Blocks solution. We have a lot of different UI elements that can trigger an upload dialog / modal. With the new file uploader we want to open the Regular File Uploader. Currently we hide lr-simple-btn via CSS and start the flow using initFlow() on our custom UI elements. My questions now is:
Is there a better way to use custom UI elements instead of the lr-simple-btn? I was thinking of maybe using slots, like this:
We are considering implementing a potential solution involving a headless attribute (the name might be changed). This attribute would enable the uploader to operate without displaying the default button, allowing it to be triggered only programmatically .: