Description Usage Arguments Author(s) Examples
Create a label or badge
1 2 |
name |
label name |
status |
label status: "danger", "warning", "info", "success" or "primary". If mode is "badge" statuses are "red", "orange", "green", "blue", "purple". |
position |
label position: NULL by default, "pull-right" or "pull-left". If mode is "badge", position is NULL |
mode |
Either "label" or "badge". "label" 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 | if (interactive()) {
library(shiny)
library(gentelellaShiny)
shinyApp(
ui = gentelellaPageCustom(
gentelellaBody(
box(
title = "Labels",
label(name = "David", status = "warning", mode = "badge"),
br(), br(), br(),
label(name = "Mark", position = "pull-right"),
label(name = "Isabella", status = "danger", position = "pull-left")
)
)
),
server <- function(input, output) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.