bulmaCheckInput | R Documentation |
Add add check boxes.
bulmaCheckInput(inputId, choices, color = NULL, checked = NULL)
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. |
John Coene, jcoenep@gmail.com
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
})
}
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.