View source: R/mk-radio-buttons.R
mk_radio_buttons | R Documentation |
Create a group of pretty radio buttons used to select an item from a list.
mk_radio_buttons(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. |
A list of HTML elements that can be added to a UI definition.
inst/examples/ex-radio-buttons.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.