-
Notifications
You must be signed in to change notification settings - Fork 15
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
Is it possible to update modal spinner text ? #19
Comments
Mea culpa, I had not tried to put directly a show_modal_spinner() after a show_modal_spinner(), which gives the result I was looking for... The solution :
This non-problem is therefore closed. |
After some trials I have discovered a bug caused by calling successively show_modal_spinner() without using remove_modal_spinner() inbetween. Here is a reproducible example using shinydasboard :
You will see (I hope) the horizontal shrinkage with this version of code. If you uncomment the "remove_modal_spinner()" functions, you will see that the shrinkage vanishes ! Thank you in advance ! |
Indeed that's ennuyeux. observeEvent(input$sleep1, {
show_modal_spinner(spin = "orbit", text = "First part of computation", color = "#08298A")
Sys.sleep(2) # some computation
update_modal_spinner("Second part of computation")
Sys.sleep(3) # some other computation
remove_modal_spinner()
}) Victor |
Great, this works flawlessly ! Maxime |
Hi,
I am wondering if it is possible to update show_modal_spinner() displayed text without using remove_modal_spinner() and then re-define a new show_modal_spinner() (with a different text within) ?
Even if the combination of remove_modal_spinner() and show_modal_spinner() works, it is not very fluid for the user. Indeed, we can see the quick on and off of the spinner box (in addition, it creates some "light flashes" as the spinner box background is sucessively shaded and unshaded).
Here is what I am currently using :
Here is what I'm looking for :
Thanks !
The text was updated successfully, but these errors were encountered: