loading-bar icon indicating copy to clipboard operation
loading-bar copied to clipboard

ProgressBar with Asynchronous Value ?

Open JarredBlack opened this issue 3 years ago • 1 comments

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 :)

JarredBlack avatar Apr 15 '22 09:04 JarredBlack

you just call ldbar.set(n, false) every time you get a new async percent

kylebakerio avatar Sep 20 '22 06:09 kylebakerio