shinycssloaders icon indicating copy to clipboard operation
shinycssloaders copied to clipboard

Display spinners inline

Open tonyk7440 opened this issue 7 years ago • 2 comments

When placing outputs with spinners beside each other they are each on their own line. How can they be placed horizontally?

tabPanel(title = "Sentiment", width = 12, 
    withSpinner(imageOutput(outputId = "wordcloud")), 
    withSpinner(imageOutput(outputId = "sentiment_pie")), 
    withSpinner(imageOutput(outputId = "star_rating_chart"))
)

I have tried the following but but it hides the spinner itself tags$style(HTML("div.shiny-spinner-output-container {display: inline}")),

tonyk7440 avatar Oct 09 '18 14:10 tonyk7440

Similarly, adding a spinner to a textOutput(inline = TRUE) disrupts the inline-ness of the text output.

daattali avatar Nov 12 '19 08:11 daattali

If anyone has a good idea of how to fix this elegantly, a PR would be welcomed

daattali avatar Jul 23 '20 17:07 daattali