f7Icon {shinyMobile} | R Documentation |
Framework7 icons
Description
Use Framework7 icons in shiny applications, see complete list of icons here : https://framework7.io/icons/.
Usage
f7Icon(..., lib = NULL, color = NULL, style = NULL)
Arguments
... |
Icon name and f7Badge. |
lib |
Library to use: NULL, "ios" or "md".
Leave |
color |
Icon color, if any. |
style |
CSS styles to be applied on icon, for example
use |
Author(s)
David Granjon, dgranjon@ymail.com
Examples
if (interactive()) {
library(shiny)
library(shinyMobile)
shinyApp(
ui = f7Page(
title = "Icons",
f7SingleLayout(
navbar = f7Navbar(title = "icons"),
f7List(
f7ListItem(
title = tagList(
f7Icon("envelope")
)
),
f7ListItem(
title = tagList(
f7Icon("envelope_fill", color = "green")
)
),
f7ListItem(
title = f7Icon("house", f7Badge("1", color = "red"))
),
f7ListItem(
title = f7Icon("home", lib = "md"),
"Only for material design"
)
)
)
),
server = function(input, output) {}
)
}
[Package shinyMobile version 2.0.0 Index]