Learn R Programming

shinyjs (version 2.1.0)

refresh: Refresh the page

Description

Refresh the page

Usage

refresh()

Arguments

Examples

Run this code
# NOT RUN {
if (interactive()) {
  library(shiny)
  ui <- fluidPage(
    useShinyjs(),
    textInput("text", "Text", "text"),
    actionButton("refresh", "Refresh")
  )

  server <- function(input, output, session) {
    observeEvent(input$refresh, {
      refresh()
    })
  }

 shinyApp(ui, server)
}

# }

Run the code above in your browser using DataLab