icon | R Documentation |
Create an icon for use within a page. Icons can appear on their own, inside
of a button, and/or used with tabPanel()
and navbarMenu()
.
icon(name, class = NULL, lib = "font-awesome", ...)
name |
The name of the icon. A name from either Font Awesome (when |
class |
Additional classes to customize the style of an icon (see the usage examples for details on supported styles). |
lib |
The icon library to use. Either |
... |
Arguments passed to the |
An <i>
(icon) HTML tag.
For lists of available icons, see https://fontawesome.com/icons and https://getbootstrap.com/docs/3.3/components/#glyphicons
# add an icon to a submit button
submitButton("Update View", icon = icon("redo"))
navbarPage("App Title",
tabPanel("Plot", icon = icon("bar-chart-o")),
tabPanel("Summary", icon = icon("list-alt")),
tabPanel("Table", icon = icon("table"))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.