daattali / shinycssloaders

⌛ Add loading animations to a Shiny output while it's recalculating
https://daattali.com/shiny/shinycssloaders-demo/
Other
395 stars 45 forks source link

Suggestion: Add message option #28

Closed philippnkling closed 1 year ago

philippnkling commented 5 years ago

Hello,

I am really content with the Spinner options to display while rendering a page. However, I would really like to have an option to show a message in addition to the Spinner image, as the loading of the page might take some time. Other alternatives such as withProgress() (https://shiny.rstudio.com/articles/progress.html) seem to have this feature and I think this might enrich the Spinner application very much. What do you think? Did you find a workaround?

daattali commented 4 years ago

If you can think of a good UI for this that would be robust to all cases, then a PR would be great

laurenmarietta commented 3 years ago

I would also love this feature! Currently working on a Shiny app that takes a while to load at startup, and would love in particular to have an initial loading message like "Loading data, please wait about 20 seconds..." and perhaps a simpler "Recalculating..." message for future loads after startup.

Without having looked into the shinycssloaders code, I imagine this could be achieved by adding another div to hold some text beneath the loader?

jjalcolea commented 3 years ago

Yep. I was looking exactly for this feature... :+1:

daattali commented 1 year ago

This is being worked on in https://github.com/daattali/shinycssloaders/pull/72

daattali commented 1 year ago

Solved with #72

You can use the caption parameter. It accepts either text (caption = "Please wait") or HTML (caption = div(strong("Loading"), br(), "Please wait"))