View source: R/ds-suggestion.R
| ds_suggestion | R Documentation |
Create an autocomplete input with suggestions.
ds_suggestion(
inputId,
choices = NULL,
value = "",
placeholder = NULL,
size = NULL,
...
)
inputId |
The input slot for Shiny reactivity |
choices |
Character vector of suggestion choices |
value |
Initial value |
placeholder |
Placeholder text |
size |
Size variant ("sm", "md", "lg") |
... |
Additional attributes |
A Shiny tag object
ds_suggestion("city",
choices = c("Oslo", "Bergen", "Trondheim", "Stavanger"),
placeholder = "Search for a city..."
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.