metroBadge: Create a Metro 4 badge

Description Usage Arguments Author(s) Examples

View source: R/metroBadge.R

Description

Build a Metro badge

Usage

1
metroBadge(..., position = NULL, text_color = NULL, color = NULL)

Arguments

...

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.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

 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) {}
 )
}

RinteRface/shinyMetroUi documentation built on Dec. 31, 2019, 8:47 a.m.