Description Usage Arguments Examples
Build a materialize button. The initial value is zero, and increases by one on each press.
1 2 3 |
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 ? |
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'
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.