shinycssloaders icon indicating copy to clipboard operation
shinycssloaders copied to clipboard

Suggestion: Add message option

Open philippnkling opened this issue 5 years ago • 3 comments

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?

philippnkling avatar Apr 05 '19 12:04 philippnkling

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

daattali avatar May 03 '20 01:05 daattali

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?

laurenmarietta avatar May 21 '21 15:05 laurenmarietta

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

jjalcolea avatar Jun 04 '21 10:06 jjalcolea

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

daattali avatar Mar 08 '23 21:03 daattali

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

daattali avatar Apr 12 '23 06:04 daattali