View source: R/input_combobox.R
input_combobox | R Documentation |
Adds an input to select from the entered options, allowing for multiple selection, dynamic filtering, and custom entries.
input_combobox(label, options, default = -1, display = options,
id = label, ..., strict = TRUE, numeric = FALSE, search = TRUE,
multi = FALSE, accordion = FALSE, clearable = FALSE, note = NULL,
group_feature = NULL, variable = NULL, dataset = NULL,
depends = NULL, dataview = NULL, subset = "filtered",
selection_subset = "full_filter", filters = NULL, reset_button = FALSE,
button_class = NULL, as.row = FALSE, floating_label = TRUE)
label |
Label of the input for the user. |
options |
A vector of options, the name of a variable from which to pull levels, or |
default |
Which of the options to default to; either its index or value. |
display |
A display version of the options. |
id |
Unique ID of the element to be created. |
... |
Additional attributes to set on the input element. |
strict |
Logical; if |
numeric |
Logical; if |
search |
Logical; if |
multi |
Logical; if |
accordion |
Logical; if |
clearable |
Logical; if |
note |
Text to display as a tooltip for the input. |
group_feature |
Name of a measure or entity feature to use as a source of option grouping,
if |
variable |
The name of a variable from which to get levels (overwritten by |
dataset |
The name of an included dataset, where |
depends |
The ID of another input on which the options depend; this will take president over |
dataview |
The ID of an |
subset |
Determines the subset of options shown if |
selection_subset |
Subset to use when a selection is made; defaults to |
filters |
A list with names of |
reset_button |
If specified, adds a button after the input element that will revert the selection
to its default; either |
button_class |
Class name to add to the reset button. |
as.row |
Logical; if |
floating_label |
Logical; if |
A character vector of the contents to be added.
See input_select
for a more standard select input, or input_text
for a free-form input.
## Not run:
input_combobox("Options", c("a", "b"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.