Description Usage Arguments Value Examples
Update the counter.
1 | countup_update(counter, update)
|
counter |
An object of class |
update |
Integer to update to. |
The counter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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.