-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
waiter functionality similar to withSpinner #105
Comments
Let me explore how this functionality could be integrated with waiter. (sorry for the late response) |
I just added this to the dev version from Github: Reinstall the latest version # install.packages("remotes")
remotes::install_github("JohnCoene/waiter") Try library(shiny)
library(waiter)
ui <- fluidPage(
useWaiter(),
actionButton("draw", "plot"),
withWaiter(
plotOutput("plot")
)
)
server <- function(input, output, session){
output$plot <- renderPlot({
input$draw
Sys.sleep(5)
plot(cars)
})
}
shinyApp(ui, server) |
I'm assuming this is sorted and closing, feel free to reopen if it is not |
When are you going to update the package on CRAN? |
The latest version |
Hi Jhon, the new functionality is very good. However it doesn't work for me for plotly or DT. Here is an example with plotly. `library(shiny) ui <- fluidPage( server <- function(input, output, session){ shinyApp(ui, server)` |
Does it already works with plotly? Cause I also can not get it to work |
Dear waiter developers,
I find your package really awesome but I cannot figure out how I can reproduce the
withSpinner
function of theshinycssloader
package.I display output elements dinamically so I cannot use their ids to assign a waiter to them.
I tried to use
autoWaiter()
but it works only for output elements for which I call arenderPlot
function.It seems it does not work for generic output elements like
outputUI
.I make an example:
Before, I created a div in this way:
tags$div(withSpinner(uiOutput("output_name")))
and when I call
output$output_name <- renderUI(tags$div("hello"))
the spinner appears and it hides when the UI is rendered.
Since I want to use only your package for this kind of tasks, I'm asking you if there is a way to reproduce this behaviour.
Thanks.
Giada
The text was updated successfully, but these errors were encountered: