bulmaCheckInput: Check boxes

Description Usage Arguments Author(s) Examples

View source: R/bulma-input.R

Description

Add add check boxes.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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 Oct. 17, 2020, 8:57 p.m.