input_select | R Documentation |
Adds an input to select from the entered options.
input_select(label, options, default = -1, display = options, id = label,
..., 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 select element. |
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 select 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.
## Not run:
input_select()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.