bulmaCheckInput: Check boxes

View source: R/bulma-input.R

bulmaCheckInputR Documentation

Check boxes

Description

Add add check boxes.

Usage

bulmaCheckInput(inputId, choices, color = NULL, checked = NULL)

Arguments

inputId

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

choices

Vector of choices, named or unnamed.

color

Vector of colors.

checked

Values of checked boxes.

Author(s)

John Coene, jcoenep@gmail.com

Examples

if(interactive()){
shiny::shinyApp(
  ui = bulmaPage(
   bulmaTitle("Hello Bulma"),
   bulmaCheckInput("select", c("Miles per galon" = "mpg", "Rear axle ratio" = "drat"),
     checked = "mpg", color = c("danger", "info")),
   verbatimTextOutput("selected")
  ),
  server = function(input, output) {
    output$selected <- renderText({
      input$select
    })
  }
)
}


JohnCoene/shinybulma documentation built on Nov. 16, 2022, 6:42 p.m.