refresh {shinyjs}R Documentation

Refresh the page

Description

Refresh the page

Usage

refresh()

Examples

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)
}


[Package shinyjs version 2.1.0 Index]