Select
select.Rmd
The select()
component is used to create a drop-down list.
See the official documention for select, for all the correct props.
Examples
select(
"select",
option(icon = "iphone", "Phone"),
htmltools::div(
slot = "valueStateMessage",
"An informational message"
),
option(icon = "ipad", "Table"),
option(icon = "laptop", "Laptop")
)
An informational message
select(
"select",
option("Phone", `additional-text` = "1"),
option("Table", `additional-text` = "2"),
option("Laptop", `additional-text` = "3")
)