countup_update | R Documentation |
Update the counter.
countup_update(counter, update)
counter |
An object of class |
update |
Integer to update to. |
The counter
library(shiny)
ui <- fluidPage(
countupOutput("cnt"),
actionButton("Update", "start")
)
server <- function(input, output, session) {
output$cnt <- renderCountup({
countup(24)
})
observeEvent(input$start, {
countupProxy("cnt") %>%
countup_update(50)
})
}
## Not run: shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.