stepTimer {shinyDTC} | R Documentation |
stepTimer
Description
Simulates a button press on Step
.
Usage
stepTimer(inputId)
Arguments
inputId |
character: input slot |
Value
nothing
Examples
# Example requires the use of a `shiny` app (See Vignette)
if (interactive()) {
library(shiny)
library(shinyDTC)
library(shinyjs)
ui <- fluidPage(
useShinyjs(),
timerUI("ttimer"),
actionButton("step", "Trigger Step (Externally)")
)
server <- function(input, output, session) {
timerServer("ttimer")
observeEvent(input$step, {
stepTimer("ttimer")
})
}
shinyApp(ui, server)
}
## Not run:
# stepTimer("ttimer") should be used inside a `shiny` server context
## End(Not run)
[Package shinyDTC version 0.1.0 Index]