loading-bar
loading-bar copied to clipboard
ProgressBar with Asynchronous Value ?
Hello There,
I would like to find the way to use your library with percentage calculated,
I saw we can set the value, but to use progress bar with data changed in live ??
For example for updloading files it's (bytes / totalBytesFiles) *100 right ? ok But how to update value changing while uploading is used ?
In Javascript we can set value : ldbar = new ldBar(document.querySelector('.ldBar')); ldbar.set(80);
So the bar move and fill by until 80% is reach ok, but this 80 is static, my values are changing while my method is running
How can i achieve this ? Maybe with "data-transition-in" ???
Thanks for your answer :)
you just call ldbar.set(n, false) every time you get a new async percent