View source: R/radio-buttons.R
radio_buttons_ui | R Documentation |
The UI component of the Shiny module for creating a group of pretty radio buttons for selecting one value among a list of values.
radio_buttons_ui(id, label = NULL, choices)
id |
String. The input slot that will be used to access the value. |
label |
String. Display label/title for the radio buttons group, or NULL (default) for no label. |
choices |
Character vector. List of values to show radio buttons for. If elements of the list are named then names rather than values are displayed. The values should be strings; other types (such as logicals and numbers) will be coerced to strings. |
Must use it together with its counterpart server.
radio_buttons_server
for the server
mk_radio_buttons
for how to make a group of awesome
radio buttons.
inst/examples/ex-radio-buttons.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.