bulmaSelectInput | R Documentation |
Add dropdown otpions.
bulmaSelectInput(inputId, label, choices, rounded = FALSE)
inputId |
the input slot that will be used to access the value. |
label |
input label. |
choices |
vector of choices. |
rounded |
set to round corners. |
John Coene, jcoenep@gmail.com
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)
}
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.