-
Notifications
You must be signed in to change notification settings - Fork 97
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
progress inside a modal windows #359
Comments
hi @ashbaldry you helped with the progress bar, any idea why it gets stuck inside modal? |
Not sure why it doesn't work in the modal, it might be an initialisation problem, but can have a further look into it. |
Having looked more into this, the progress does work in the modal, but it's the multiple updates in one function call that is causing issues. In the above example, it seems to run the whole for loop before updating the UI. This isn't exclusive to shiny, as it is reproducible in Fomantic UI. I have logged a bug in the Fomantic repository if you are interested: fomantic/Fomantic-UI#1936 |
A described in the Fomantic issue this isn't a bug, as the browser will only render the final result when you call progress inside a loop. As suggested, you should rather use setTimeout or requestanimationframe if you want to see the progress growing step by step |
Thanks @lubber-de for your help, it has helped find the actual issue. Looks like it is down to the input binding of the progress bar, it stays in a loading mode until the server code is complete. That is why the |
For the second and third points @ArthurPERE |
Enabling Progress Bar to Update in Loops. Fixes #359
Hello,
I search for a progress bar inside a modal window, to use it like progressSweetAlert of shinyWidget package. But I can't do it like I want it.
Something like this :
But 3 problems appear :
Thank you,
Arthur
The text was updated successfully, but these errors were encountered: