Learn R Programming

shinyMobile (version 0.1.0)

f7Icon: Create a Framework7 icon

Description

Build a Framework7 icon

Usage

f7Icon(..., lib = NULL, fill = FALSE)

Arguments

...

Icon name and f7Badge.

lib

Library to use: NULL, "ios" or "md".

fill

Whether to fill or not. FALSE by default.

Examples

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

 shiny::shinyApp(
  ui = f7Page(
    title = "Icons",
    f7ListCard(
     f7ListCardItem(
       title = tagList(
        f7Icon("email_fill", lib = "ios"),
        "This does not appear for material design devices."
       )
     ),
     f7ListCardItem(
       title = f7Icon("home", f7Badge("1", color = "red"))
     ),
     f7ListCardItem(
       title = f7Icon("email", lib = "md")
     )
    )
  ),
  server = function(input, output) {}
 )
}

# }

Run the code above in your browser using DataLab