Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUnexpected behavior with waiter spinner with shinydashboard #43
Comments
|
Hi Tyler, thank you for reporting this! Indeed one of the CSS classes clashed with shinydashboard and thus instead of showing the spinner was showing the box just like # install.packages("remotes")
remotes::install_github("JohnCoene/waiter")Note that if the library(shiny)
library(shinydashboard)
library(waiter)
ui <- dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
use_waiter(),
actionButton("draw", "draw plot"),
box(plotOutput("plot"))
)
)
server <- function(input, output) {
w <- Waiter$new(id = "plot")
dataset <- reactive({
input$draw
w$show()
Sys.sleep(3)
# hides automatically
#w$hide()
runif(100)
})
output$plot <- renderPlot(plot(dataset()))
}
shinyApp(ui, server)Let me know if this works so I can close the issue. Thanks again! |
|
Working on my end, thanks! |

Hi @JohnCoene !
I am trying to add a loading screen to a datatable that is inside a shinydashboard box. However, the spinner looks like a really small box rather than the actual spinner. This seems to go away if I manually assign a spinner. A reproducible example below: