Say you have a Input control to get a file from the filesystem, then as part of that Input control you have a script that uploads the file…how can you show a progress bar during the execution of the script?
I see some things on the web for this, fairly involved, and wondering what the best practice might be.
The most common pattern is to use a progress bar component with an “if” condition that checks something like supplier.reading (where .reading is set to true automatically while the supplier is reading). You can do something similar during a script by adding a boolean property to your component called “uploading”, setting it true at the top of the script and then setting it to false at the bottom of the script.