material_fab: Create a materialize fab action button (fab)

Description Usage Arguments Examples

Description

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

Usage

1
2
3
material_fab(inputId, actlist = list(), icon = "mode_edit",
  size = "large", color = NULL, icolor = NULL, direction = "top",
  position = "bottom-right", fixed = TRUE, hover = TRUE)

Arguments

inputId

String. The input identifier used to access the value.

actlist

List. A list of action attributes such as target, icon, size, color and icolor.

icon

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

size

String. The size of the icon. Values should be 'large', 'medium' or 'small'.

color

String. The color name of the fab action button. Leave empty for the 'teal lighten-1' color. Visit http://materializecss.com/color.html for a list of available colors.

icolor

String. The color name of the icon. Leave empty for the 'teal lighten-1' color. Visit http://materializecss.com/color.html for a list of available colors.

direction

String. The direction of the fab action button when open. values should be 'top', 'right', 'buttom', 'left'.

position

String. The position of the fab action button. Values should be 'bottom-left', 'bottom-right', 'top-left' and 'top-right'.

fixed

Logical. The fab action button should be fixed?

hover

Logical. Should the fab action button be hoveable ?

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
require(materializer)
material_fab(
  inputId = "example_flt_action",
  actlist = list(
    c(target = "ex1", icon = "home"),
    c(target = "ex2", icon = "chart")
  ),
  icon = "add",
  color = 'teal lighten-1'
)

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