| ds_select | R Documentation |
Create a styled select dropdown using Designsystemet styles.
ds_select(
inputId,
choices,
selected = NULL,
size = NULL,
disabled = FALSE,
...
)
inputId |
The input slot for Shiny reactivity |
choices |
Named vector of choices (names are labels, values are values) |
selected |
Initially selected value |
size |
Size variant ("sm", "md", "lg") |
disabled |
If TRUE, disables the select |
... |
Additional attributes |
A Shiny tag object
ds_select("country",
choices = c("Norway" = "no", "Sweden" = "se", "Denmark" = "dk"),
selected = "no"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.