examples/wired_checkbox.R

if (interactive()) {

  library(shiny)
  library(wired)

  ui <- fluidPage(
    wired_checkbox(
      inputId = "chck",
      label = "Single checkbox"
    ),
    verbatimTextOutput(outputId = "res")
  )

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

    output$res <- renderPrint(input$chck)

  }

  shinyApp(ui, server)

}
dreamRs/wired documentation built on Nov. 19, 2019, 5 a.m.