Description Usage Arguments Value See Also Examples
Create an icon for use within a page. Icons can appear on their own, inside
of a button, or as an icon for a tabPanel
within a
navbarPage
.
1 |
name |
Name of icon. Icons are drawn from the Font Awesome and Glyphicons" libraries. Note that the "fa-" and "glyphicon-" prefixes should not be used in icon names (i.e. the "fa-calendar" icon should be referred to as "calendar") |
class |
Additional classes to customize the style of the icon (see the usage examples for details on supported styles). |
lib |
Icon library to use ("font-awesome" or "glyphicon") |
An icon element
For lists of available icons, see http://fontawesome.io/icons/ and http://getbootstrap.com/components/#glyphicons.
1 2 3 4 5 6 7 8 9 10 11 12 | icon("calendar") # standard icon
icon("calendar", "fa-3x") # 3x normal size
icon("cog", lib = "glyphicon") # From glyphicon library
# add an icon to a submit button
submitButton("Update View", icon = icon("refresh"))
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.