Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (45 sloc) 1.58 KB
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bootstrap.R
\title{Create an icon}
icon(name, class = NULL, lib = "font-awesome")
\item{name}{Name of icon. Icons are drawn from the
\href{}{Font Awesome} and
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
\item{class}{Additional classes to customize the style of the icon (see the
\href{}{usage examples} for details on
supported styles).}
\item{lib}{Icon library to use ("font-awesome" or "glyphicon")}
An icon element
Create an icon for use within a page. Icons can appear on their own, inside
of a button, or as an icon for a \code{\link{tabPanel}} within a
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"))
For lists of available icons, see
\href{}{} and
Something went wrong with that request. Please try again.