View source: R/widget-controls.R
| radio_set | R Documentation |
radio_set() groups radio_button()s so that one can be selected.
Space, Enter or a click selects an option; Up/Down move between options.
Changes send "radio_set.changed" (event$data: value, index,
label) from the set.
radio_set(..., selected = NULL, id = NULL, classes = NULL, style = NULL)
radio_button(label, value = label, id = NULL, disabled = FALSE)
... |
|
selected |
Value selected initially. |
id |
Optional identifier. |
classes |
Optional classes. |
style |
A |
label |
Label of the option. |
value |
Value of the option (defaults to the label). |
disabled |
Can the option be selected? |
A RadioSet widget with a value field.
radio_set(radio_button("CSV", "csv"), radio_button("JSON", "json"), selected = "csv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.