A scrollable list of choices. Up/Down/Page Up/Page Down/Home/End move the
highlight (sending "option_list.highlighted"); Enter or a click selects
("option_list.selected"). event$data has index, value and
label.
Arguments
- choices
A character vector. Names, if present, are shown instead of the values.
- id
Optional identifier.
- classes
Optional classes.
- style
A
style().
Examples
option_list(c(Comma = "csv", JSON = "json", Parquet = "parquet"))
#> <OptionList>