Description Usage Arguments See Also Examples
A stylized radio input. A reactive input with multiple choices where only one choice and value at most may be selected.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
id |
A character string specifying the id of the reactive input. |
choices |
A character vector or list of tag elements specifying the input's choices. |
values |
A character vector, list of character strings, vector of values
to coerce to character strings, or list of values to coerce to character
strings specifying the values of the radio input's choices, defaults to
|
selected |
One of |
... |
Additional named arguments passed as HTML attributes to the parent element or tag elements passed as child elements to the parent element. |
inline |
If |
enable |
One of |
disable |
One of |
valid |
A character string specifying a message to the user indicating
how the input's value is valid, defaults to |
invalid |
A character string specifying a message to the user
indicating how the input's value is invalid, defaults to |
session |
A reactive context, defaults to |
Other inputs:
buttonGroupInput()
,
buttonInput()
,
checkbarInput()
,
checkboxInput()
,
chipInput()
,
fileInput()
,
formInput()
,
listGroupInput()
,
menuInput()
,
navInput()
,
radiobarInput()
,
rangeInput()
,
selectInput()
,
textInput()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ### Out-of-the-box radios
radioInput(
id = "radio1",
choices = c(
"Vehicula adipiscing mattis",
"Magna nullam",
"Aenean venenatis",
"Tristique quam porta"
)
)
### Inline radio input
radioInput(
id = "radio2",
choices = c(
"Choice 1",
"Choice 2",
"Choice 3"
),
inline = TRUE # <-
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.