material_badge: Create a materialize badge

Description Usage Arguments Examples

Description

Build a materialize badge

Usage

1
2
3
4
material_badge(inputId, label = NULL, color = NULL)

update_material_badge(inputId, label = NULL,
  session = shiny::getDefaultReactiveDomain())

Arguments

inputId

String. The input identifier used to access the value.

label

String. The badge label

color

String. The color name of the badge Leave empty for '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
require(materializer)
material_badge(
  inputId = "example_button",
  label = "4",
  color = "blue lighten-2"
)

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