| fui_el {fomantic.plus} | R Documentation |
Create Fomantic UI Elements
Description
Create an R object that represents a Fomantic UI Element e.g. segment or container. The contents have remained as minimal as possible to enable the greatest possible flexibility.
Usage
fui_el
Format
An object of class list of length 41.
Details
Most of the elements work just like a standard HTML tag with some pre-defined classes, however there are a few elements which require a value, and so have an extra argument attached:
emojiFUI Element:
emoji- The string of the emoji namecountryFUI Element:
flag- Either the country name or 2 character ISO codeiconFUI Element:
icon- The space separated name of the Font Awesome iconhtml_tagFUI Elements:
header, list, item- For certain elements, multiple HTML tags can be used. The default is set todiv, but can be set to any valid HTML tag.
See Also
https://fomantic-ui.com for styling Fomantic UI elements, builder
Examples
# List
fui_el$list(
fui_el$item("Item 1"),
fui_el$item("Item 2"),
fui_el$item("Item 3")
)
# Pink Segment
fui_el$segment(
class = "pink"
)
# Grid
fui_el$grid(
fui_el$row(
class = "two column",
fui_el$column(),
fui_el$column()
)
)
# Flag
fui_el$flag("fr")
# Icon
fui_el$icon("exclamation triangle")