| inline_select | R Documentation |
A select list input similar to shiny::selectInput() that can be
included in an inline() wrapper.
inline_select(id, choices, selected = NULL, multiple = FALSE, meaning = NULL)
id |
The |
choices |
Vector or list of values to select from. Provide one of the following:
|
selected |
The initially selected option's value. If |
multiple |
Whether to allow multiple selections. As of inshiny version
0.1.0, the version of inline_select with |
meaning |
A descriptive label, for people using assistive technology such as screen readers. |
An inline widget to be included in an inline() wrapper.
shiny::selectInput for how the select input works with your Shiny server.
ui <- bslib::page_fixed(
shiny::h1("Pet registration form"),
inline("My ",
inline_select("species", c("dog", "cat"), meaning = "Pet species"),
"'s name is ",
inline_select("name", list("Dog names" = c("Fido", "Rex"),
"Cat names" = c("Felix", "Boots")), selected = "Rex"),
".")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.