material_floating_button: Create a shinymaterial floating button

Description Usage Arguments Examples

View source: R/shiny-material-floating-button.R

Description

Build a shinymaterial floating button. The initial value is zero, and increases by one on each press.

Usage

1
2
3
4
5
6
7
material_floating_button(
  input_id,
  icon = NULL,
  pulse = FALSE,
  depth = NULL,
  color = NULL
)

Arguments

input_id

String. The input identifier used to access the value.

icon

String. The name of the icon. Leave empty for no icon. Visit https://materializecss.com/icons.html for a list of available icons.

pulse

Boolean. Include pulse effect.

depth

Integer. The amount of depth of the floating button. The value should be between 0 and 5. Leave empty for the default depth.

color

String. The color of the floating button. Leave empty for the default color. Visit https://materializecss.com/color.html for a list of available colors.

Examples

1
2
3
4
5
6
material_floating_button(
  input_id = "example_floating_button",
  icon = "mode_edit",
  depth = 5,
  color = "red lighten-3"
)

ericrayanderson/shinymaterial documentation built on Oct. 9, 2020, 5:21 p.m.