Replies: 1 comment 1 reply
|
The option is For example, the App Loader currently calls So this works for an upload whose total size is known: E.showMessage("Uploading...", { uploadProgress: totalBytes });But it cannot currently be set to an arbitrary value such as 20% or 50%. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Mentioned in espruino/EspruinoAppLoaderCore#85, E.showMessage can show a progress bar now with upload progress. However, I couldn't find much documentation on the the {progress:xxx} option, and was messing around with it for a while trying to get it to show progress. Is there a way to get the E.showMessage to show a progress value at will (eg. showing 20%, or 50%), to be used to show loading/progress outside of uploading and bytes?
Edit: Looked a bit closer, and from what I can tell, uses
E.packetevent to update itself. Just a thought, but it makes a lot of sense in my mind to have an option to draw a progress bar as an option with a specified percent (progress:0.2).Of course, we can draw the progress bar manually, but it'd be quite useful as a built in option for consistency across apps, and as an additional way to draw progress bars quickly and efficiently. @gfwilliams wdyt? You and I have disagreed on opinions like this, so just getting a second perspective :)
All reactions