Learn R Programming

shinyMobile (version 0.5.0.9000)

f7Badge: Create a Framework7 badge

Description

Build a Framework7 badge

Usage

f7Badge(..., color = NULL)

Arguments

...

Badge content. Avoid long text.

color

Badge color: see here for valid colors https://framework7.io/docs/badge.html.

Examples

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

 colors <- getF7Colors()

 shiny::shinyApp(
   ui = f7Page(
     title = "Badges",
     f7SingleLayout(
       navbar = f7Navbar(title = "f7Badge"),
       f7Block(
         strong = TRUE,
         lapply(seq_along(colors), function(i) {
           f7Badge(colors[[i]], color = colors[[i]])
         })
       )
     )
   ),
   server = function(input, output) {}
 )
}

# }

Run the code above in your browser using DataLab