material_slider: Create a materialize slider

Description Usage Arguments Examples

Description

Build a materialize slider.

Usage

1
2
3
4
5
6
material_slider(inputId, label, minval = 0, maxval = 100,
  initval = minval, color = NULL)

update_material_slider(inputId, label = NULL, minval = NULL,
  maxval = NULL, initval = NULL,
  session = shiny::getDefaultReactiveDomain())

Arguments

inputId

String. The input identifier used to access the value.

label

String. The slider label.

minval

Number. The minimum value on the slider.

maxval

Number. The maximum value on the slider.

initval

Number. The initial value of the slider.

color

String. The color name of the slider 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
8
9
require(materializer)
material_slider(
  inputId = "example_slider",
  label = "slider",
  minval = 5,
  maxval = 15,
  initval = 10,
  color = 'teal lighten-1'
)

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