View source: R/input_buttongroup.R
input_buttongroup | R Documentation |
Adds a group of radio-like buttons, where only one can be selected at a time.
input_buttongroup(label, options, default = 0, display = options,
id = label, ..., button_class = NULL, variable = NULL,
dataset = NULL, depends = NULL)
label |
Label of the input for the user. |
options |
A vector of options, the name of a variable from which to pull levels, or either |
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 element. |
button_class |
Class name to add to each label (which appears as the button). |
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 |
A character vector of the contents to be added.
For a button to set an input or trigger a function, see input_button
.
## Not run:
input_buttongroup()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.