UIkit checkbox input for Shiny

ukCheckboxInput(inputId, label, choices = NULL, selected = NULL)

Arguments

inputId

character. The input identifider used to access the value

label

character. Input label

choices

character. Named or unnamed vector of choices.

selected

character. Selected checkbox input

Examples

# NOT RUN {
library(shiny)
shinyApp(
  ui = ukPage(
   tags$h1("Hello UIkit"),
   ukCheckboxInput("select", c("Miles per galon" = "mpg", "Rear axle ratio" = "drat")),
   verbatimTextOutput("selected")
  ),
  server = function(input, output) {
    output$selected <- renderText({
      input$select
    })
  }
)
# }