material_rating: Create a materialize rating

Description Usage Arguments Examples

Description

Build a materialize rating

Usage

1
2
3
4
5
material_rating(inputId, n = 5L, checked = 3, size = "1.25em",
  space = "3em", disabled = FALSE, color = NULL, ...)

update_material_rating(inputId, checked = NULL, disabled = NULL,
  session = shiny::getDefaultReactiveDomain())

Arguments

inputId

String. The input identifier used to access the value.

n

integer The number of stars

checked

Double The rating value, cloud be half values.

size

String. The size of the star rating. Could be any css length.

space

String. THe space between the stars. Could be any css length.

disabled

Boolean. Is the rating disable?

color

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

...

Aditional parameters

session

Shiny default reactive domain.

Examples

1
2
3
4
5
6
7
require(materializer)
material_rating(
  inputId = "examplerating",
  n = 5,
  checked = 3.5,
  color = 'teal lighten-1'
)

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