shinymaterial (version 0.5.3)

material_radio_button: Create a shinymaterial radio button

Description

Build a shinymaterial radio button.

Usage

material_radio_button(input_id, label, choices, color = NULL)

Arguments

input_id

String. The input identifier used to access the value.

label

String. The radio button label.

choices

Named vector. The option names and underyling values.

color

String. The color of the radio buttons. Leave empty for the default color. Visit http://materializecss.com/color.html for a list of available colors. This input requires using color hex codes, rather than the word form. E.g., "#ef5350", rather than "red lighten-1".

Examples

Run this code
# NOT RUN {
material_radio_button(
  input_id = "example_radio_button",
  label = "Radio Button",
  choices = c(
    "Cake" = "c",
    "Pie" = "p",
    "Brownie" = "b"
  ),
  color = "#ef5350"
)
# }

Run the code above in your browser using DataLab