Make dropdown
make_dropdown.Rd
Creates a shiny.fluent dropdown
Arguments
- i18n
Translator object from shiny.i18n library
- ns
Shiny namespace
- id
ID used for the input (character)
- label
Label used for the input (character)
- options
Options available for the dropdown (list)
- value
Value of the dropdown (character)
- multiSelect
Is multiselection of options is possible ? (logical)
- width
Width of the dropdown, CSS code so "300px" or "100%" are accepted (character)
- disabled
Is the textfield is disabled (character)
Examples
if (FALSE) {
options <- list(
list(key = "my_key1", text = "my_text1"),
list(key = "my_key2", text = "my_text2")
)
make_dropdown(i18n = i18n, ns = NS("settings_datasets"), id = "my_dropdown", label = "my_dropdown",
options = options, value = "my_key1", multiSelect = FALSE, width = "100%", disabled = FALSE)
}