bulmaRadioInput: Add radio buttons

Description Usage Arguments Author(s) Examples

View source: R/bulma-input.R

Description

Add radio buttons.

Usage

1
bulmaRadioInput(inputId, choices, selected)

Arguments

inputId

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

choices

vector of choices, named or unnamed.

selected

selected radio input.

Author(s)

John Coene, jcoenep@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
if(interactive()){
library(shiny)

shinyApp(
  ui = bulmaPage(
   bulmaTitle("Hello Bulma"),
   bulmaRadioInput("select", c("Miles per galon" = "mpg", "Rear axle ratio" = "drat"),
     selected = "mpg"),
   plotOutput("value")
  ),
  server = function(input, output) {
    output$value <- renderPlot(
      plot(1:nrow(mtcars), mtcars[[input$select]])
    )
  }
)
}

JohnCoene/shinybulma documentation built on Oct. 17, 2020, 8:57 p.m.