f7Badge {shinyMobile} | R Documentation |
Framework7 badge
Description
Container to highlight important information with color.
Usage
f7Badge(..., color = NULL)
Arguments
... |
Badge content. Avoid long text. |
color |
Badge color: see here for valid colors https://framework7.io/docs/badge.html. |
Author(s)
David Granjon, dgranjon@ymail.com
Examples
if (interactive()) {
library(shiny)
library(shinyMobile)
colors <- getF7Colors()
shinyApp(
ui = f7Page(
title = "Badges",
f7SingleLayout(
navbar = f7Navbar(title = "f7Badge"),
f7Block(
strong = TRUE,
f7Badge("Default"),
lapply(seq_along(colors), function(i) {
f7Badge(colors[[i]], color = colors[[i]])
})
)
)
),
server = function(input, output) {}
)
}
[Package shinyMobile version 2.0.0 Index]