Learn R Programming

shinyMobile (version 0.5.0.9000)

f7Icon: Create a Framework7 icon

Description

Build a Framework7 icon

Usage

f7Icon(..., lib = NULL, color = NULL)

Arguments

...

Icon name and f7Badge.

lib

Library to use: NULL, "ios" or "md". Leave NULL by default. Specify, md or ios if you want to hide/show icons on specific devices.

color

Icon color, if any.

Examples

Run this code
# NOT RUN {
if(interactive()){
 library(shiny)
 library(shinyMobile)

 shiny::shinyApp(
  ui = f7Page(
    title = "Icons",
    init = f7Init(theme = "light", skin = "ios"),
    f7SingleLayout(
     navbar = f7Navbar(title = "icons"),
     f7List(
      f7ListItem(
        title = tagList(
         f7Icon("email")
        )
      ),
      f7ListItem(
        title = tagList(
         f7Icon("email_fill", color = "green")
        )
      ),
      f7ListItem(
        title = f7Icon("home", f7Badge("1", color = "red"))
      ),
      f7ListItem(
        title = f7Icon("email_fill", lib = "md"),
        "This will not appear since only for material design"
      )
     )
    )
  ),
  server = function(input, output) {}
 )
}

# }

Run the code above in your browser using DataLab