Description Usage Arguments Author(s) Examples
Build a Metro badge
1 | metroBadge(..., position = NULL, text_color = NULL, color = NULL)
|
... |
Badge text. |
position |
Badge position: inside, inline or NULL |
text_color |
Badge text color. Black by default. |
color |
Badge background color. No background by default. |
David Granjon, dgranjon@ymail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | if(interactive()){
library(shiny)
library(shinyMetroUi)
shiny::shinyApp(
ui = metroPage(
metroGrid(
metroRow(
xAlign = "center",
yAlign = "center",
metroCell(metroBadge(4, color = "red")),
metroCell(metroBadge(4, color = "yellow")),
metroCell(metroBadge(4, color = "green"))
)
)
),
server = function(input, output) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.