Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

trigger the progressbar every time we click on a button #51

Open
Vintgar opened this issue Jun 1, 2015 · 2 comments
Open

trigger the progressbar every time we click on a button #51

Vintgar opened this issue Jun 1, 2015 · 2 comments

Comments

@Vintgar
Copy link

Vintgar commented Jun 1, 2015

Hi,

thanks a lot for the work.

I wondering if it's possible to trigger the progress bar everytime we click on a button or we define a action (as if the progress bar was loaded the first time with the first values)
My issue is that once the progress bar is triggered, I can't reload it for the same div/class because the values have been saved.

For example, on the demo page, when you click on the "start" button, the progress bar is triggered. But if you click again on the "start" button, nothing happens ( first you have to reset the values to trigger once again the progress bar).
I would like the progress bar triggers everytime you click on the start button, with the animation, from the begining values. (for example, aria-valuemin ="0" data-transitiongoal="75")

Is it possible ? And how I can program this ?

Thanks

@HarveyEV
Copy link

Sort of an old question, but I've done this in BS3 by resetting the bar with:
$('.progress .progress-bar').attr('data-transitiongoal', 0).progressbar();

Keep in mind that if you are using css transitions to animate your bar (e.g., five-sec-ease-in-out) it will take that many seconds to reset to zero.

@sooroos
Copy link

sooroos commented May 18, 2016

In my case $('.progress .progress-bar').attr('data-transitiongoal', 0).progressbar(); wouldnt help
i would really need a destroy function

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

No branches or pull requests

3 participants