bulmaSelectInput: Add dropdown input

Description Usage Arguments Author(s) Examples

View source: R/bulma-input.R

Description

Add dropdown otpions.

Usage

1
bulmaSelectInput(inputId, label, choices, rounded = FALSE)

Arguments

inputId

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

label

input label.

choices

vector of choices.

rounded

set to round corners.

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"),
   bulmaSelectInput("var", "Select",
     choices = c("Miles per galon" = "mpg", "Displacement" = "disp")),
   tableOutput("plot")
  ),
  server = function(input, output) {
    output$plot <- renderTable({
      mtcars[, c("wt", input$var), drop = FALSE]
    }, rownames = TRUE)
  }
)
}

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