inst/examples/bookmarking/test-switchInput.R

library("shiny")
library("shinyWidgets")


ui <- function(request) {
  fluidPage(
    tags$h1("shinyWidgets - bookmarking"),
    textInput(inputId = "txt", label = "Text"),
    switchInput(inputId = "swh", label = "Switch"),
    checkboxInput(inputId = "chk", label = "Checkbox"),
    bookmarkButton()
  )
}

server <- function(input, output, session) {

}

enableBookmarking("url")

shinyApp(ui, server)
dreamRs/shinyWidgets documentation built on April 18, 2024, 12:53 p.m.