Description Usage Arguments Examples
Build a materialize rating
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())
|
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. |
1 2 3 4 5 6 7 | require(materializer)
material_rating(
inputId = "examplerating",
n = 5,
checked = 3.5,
color = 'teal lighten-1'
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.