material_meter: Create a materialize meter

Description Usage Arguments Examples

Description

Build a materialize rating

Usage

1
2
3
4
5
6
material_meter(inputId, value = 0.5, min = 0, max = 1, high = 0.8,
  low = 0.2, optimum = 0.5, width = "5em", height = "1em", ...)

update_material_meter(inputId, value = NULL, min = NULL, max = NULL,
  high = NULL, low = NULL, optimum = NULL,
  session = shiny::getDefaultReactiveDomain())

Arguments

inputId

String. The input identifier used to access the value.

value

Double. A floating point number that represents the current value of the measured range. This must be between the min and the max value (if specified).

min

Double Indicates the lower bound of the measured range. This must be less than the max value (if specified). If unspecified, the minimum value is 0.

max

Double. Indicates the upper bound of the measured range. This must be greater than the min value (if specified). If unspecified, the maximum value is 1.0.

high

Double. It represents the lower bound of the high end of the measured range. This must be less than the max attribute, but greater than the low and min value (if specified). If unspecified, or if greater than the max value, the high value is equal to the max value.

low

Double. It represents the upper bound of the low end of the measured range. This must be greater than the min attribute, but less than the high and max value (if specified). If unspecified, or if less than the minimum value, the low value is equal to the min value.

optimum

Double. This attribute indicates the optimum value and must be within the range of min and max values. When used with the low and high attribute, it indicates the preferred zone for a given range.

width

String. The width of the meter. Could be any css length.

height

String. Could be any css length

...

tagList. Aditional arguments

session

Shiny default reactive domain.

Examples

1
2
3
4
5
6
7
require(materializer)
material_meter(
  inputId = "examplemeter",
  value = 0.5,
  min = 0,
  max = 1
)

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