Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProgressBar with Asynchronous Value ? #48

Open
JarredBlack opened this issue Apr 15, 2022 · 1 comment
Open

ProgressBar with Asynchronous Value ? #48

JarredBlack opened this issue Apr 15, 2022 · 1 comment

Comments

@JarredBlack
Copy link

JarredBlack commented Apr 15, 2022

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

@kylebakerio
Copy link

kylebakerio commented Sep 20, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants