Description Usage Arguments Examples
Build a materialize radio button.
1 2 3 4 5 | material_radio(inputId, choices, selected = NULL, disabled = NULL,
class = "with-gap", inline = FALSE, color = NULL)
update_material_radio(inputId, choices = NULL, selected = NULL,
disabled = NULL, session = shiny::getDefaultReactiveDomain())
|
inputId |
String. The input identifier used to access the value. |
choices |
Named vector or a list. The radio names and underyling values as a named vector or a list with 'names' and 'values' elements with same lenght. |
selected |
String. The initially selected underyling value. |
disabled |
String. The radio button should be disabled? |
class |
String. Aditional class for checkbox. Values should be with-gap or NULL |
inline |
Logical. The option to create the radio buttons inline. |
color |
String. The color name of the radio buttons. Leave empty for 'teal lighten-1' color. Visit http://materializecss.com/color.html for a list of available colors. |
session |
Shiny default reactive domain. |
1 2 3 4 5 6 7 8 9 10 | require(materializer)
material_radio(
inputId = "example_radio_button",
choices = c(
"Cake" = "c",
"Pie" = "p",
"Brownie" = "b"
),
color = 'teal lighten-1'
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.