label: Create a label or badge

Description Usage Arguments Author(s) Examples

View source: R/useful-items.R

Description

Create a label or badge

Usage

1
2
label(name = NULL, status = "primary", position = NULL,
  mode = "label")

Arguments

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.

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

MarkEdmondson1234/gentelellaShiny documentation built on Dec. 31, 2019, 1:24 a.m.