shinymaterial (version 0.5.3)

material_slider: Create a shinymaterial slider

Description

Build a shinymaterial slider.

Usage

material_slider(input_id, label, min_value, max_value, initial_value,
  color = NULL)

Arguments

input_id

String. The input identifier used to access the value.

label

String. The slider label.

min_value

Number. The minimum value on the slider.

max_value

Number. The maximum value on the slider.

initial_value

Number. The initial value of the slider.

color

String. The slider color. 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_slider(
  input_id = "example_slider",
  label = "slider",
  min_value = 5,
  max_value = 15,
  initial_value = 10,
  color = "#ef5350"
)
# }

Run the code above in your browser using DataLab