shinymaterial (version 0.5.3)

material_checkbox: Create a shinymaterial checkbox

Description

Build a shinymaterial checkbox. The value is a boolean (TRUE if checked, FALSE if not checked).

Usage

material_checkbox(input_id, label, initial_value = FALSE, color = NULL)

Arguments

input_id

String. The input identifier used to access the value.

label

String. The checkbox label.

initial_value

Boolean. Is the checkbox initially checked?

color

String. The color of the check. 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_checkbox(
  input_id = "example_checkbox",
  label = "Checkbox",
  initial_value = TRUE,
  color = "#ef5350"
)
# }

Run the code above in your browser using DataLab