Create a Bootstrap 386 checkbox
checkbox_input_386(inputId, label, value = FALSE, width = NULL)
inputId | The |
---|---|
label | Display label for the control, or |
value | Initial value ( |
width | The width of the input, e.g. |
if (interactive()) { library(shiny) library(shiny386) ui <- page_386( checkbox_input_386("check", "Check me", TRUE), verbatimTextOutput("val") ) server <- function(input, output, session) { output$val <- renderPrint(input$check) } shinyApp(ui, server) }