material_checkbox: Create a materialize checkbox

Description Usage Arguments Examples

Description

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

Usage

1
2
3
4
5
material_checkbox(inputId, label, checked = FALSE, class = "filled-in",
  color = NULL)

update_material_checkbox(inputId, label = NULL, checked = FALSE,
  session = shiny::getDefaultReactiveDomain())

Arguments

inputId

String. The input identifier used to access the value.

label

String. The checkbox label.

checked

Boolean. Is the checkbox initially checked?

class

String. Aditional class for checkbox. Values should be filled-in or NULL

color

String. The color name of the Checkbox. Leave empty for the 'teal lighten-1' color. Visit http://materializecss.com/color.html for a list of available colors.

session

Shiny default reactive domain.

Examples

1
2
3
4
5
6
7
require(materializer)
material_checkbox(
  inputId = "example_checkbox",
  label = "Checkbox",
  checked = TRUE,
  color = 'teal lighten-1'
)

TuSKan/materializer documentation built on May 17, 2019, 6:35 p.m.