shiny (version 0.9.1)

icon: Create an icon

Description

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.

Usage

icon(name, class = NULL, lib = "font-awesome")

Arguments

Value

An icon element

Examples

Run this code
icon("calendar")            # standard icon
icon("calendar", "fa-3x")   # 3x normal size

# add an icon to a submit button
submitButton("Update View", icon = icon("refresh"))

shinyUI(navbarPage("App Title",
  tabPanel("Plot", icon = icon("bar-chart-o")),
  tabPanel("Summary", icon = icon("list-alt")),
  tabPanel("Table", icon = icon("table"))
))

Run the code above in your browser using DataLab