material_like: Create a materialize like element

Description Usage Arguments Examples

Description

Build a materialize like and dislike element

Usage

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())

Arguments

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.

Examples

1
2
3
4
5
require(materializer)
material_like(
  inputId = "example_checkbox",
  liked = TRUE
)

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