Learn R Programming

editData (version 0.1.8)

checkboxInput3: Create a side-by-side checkboxInput

Description

Create a side-by-side checkboxInput

Usage

checkboxInput3(inputId, label, value = FALSE, width = 100)

Arguments

inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

value

Initial value.

width

The width of the input in pixel

Examples

Run this code
# NOT RUN {
library(shiny)
# Only run examples in interactive R sessions
if (interactive()) {
  ui <- fluidPage(
         label3("Welcome"),
         checkboxInput3("somevalue", "Some value", FALSE),
         verbatimTextOutput("value")
  )
  server <- function(input, output) {
        output$value <- renderText({ input$somevalue })
  }
  shinyApp(ui, server)
}
# }

Run the code above in your browser using DataLab