Description Usage Arguments Examples
Wired Select Box
1 | wired_select(inputId, label, choices, selected = NULL, width = NULL)
|
inputId |
The |
label |
Display label for the control, or |
choices |
List of values to select from. If elements of the list are named, then that name rather than the value is displayed to the user. |
selected |
The initially selected value. If not specified then defaults to the first value. |
width |
The width of the input, e.g. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | if (interactive()) {
library(shiny)
library(wired)
ui <- fluidPage(
wired_select(
inputId = "slct",
label = "Select",
choices = c("normal",
"uniform",
"exponential"),
selected = "normal"
),
verbatimTextOutput(outputId = "res")
)
server <- function(input, output, session) {
output$res <- renderPrint(input$slct)
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.