QSelect.shinyInput | R Documentation |
Warning. This will not render correctly if not attatched to a shiny server.
QSelect.shinyInput(..., options, label = "")
... |
args to pass to the element shiny.mui::Select.shinyInput() element |
options |
A list of key value pairs |
label |
label to display for the select |
library(shiny.quartz)
library(shiny)
if (interactive()) {
shinyApp(
ui = div(
QSelect.shinyInput("text", fullWidth = T, label = "First One", value = "two", options = make_options("one", "two", "three")),
textOutput("textValue")
),
server = function(input, output) {
output$textValue <- renderText({
sprintf("Value: %s", input$text)
})
}
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.