Description Usage Arguments Examples
Build a materialize like and dislike element
1 2 3 4 5 | material_like(inputId, liked = NULL, size = "medium",
disabled = FALSE)
update_material_like(inputId, liked = NULL, disabled = NULL,
session = shiny::getDefaultReactiveDomain())
|
inputId |
String. The input identifier used to access the value. |
liked |
Boolian. The initial status of the element. Could be TRUE, FALSE or NULL |
size |
String. Size of icon, could be 'tiny' (1rem), 'small' (2rem), 'medium' (4rem) and 'large' (6rem). |
disabled |
Boolean. Disable iteractivity (click). |
session |
Shiny default reactive domain. |
1 2 3 4 5 | require(materializer)
material_like(
inputId = "example_checkbox",
liked = TRUE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.