shinydashboardPlus (version 2.0.4)

dashboardLabel: AdminLTE2 label

Description

Create a label

Usage

dashboardLabel(..., status, style = "default")

Arguments

...

any text.

status

label status. Valid statuses are defined as follows:

  • primary: shinydashboardPlus:::rd_color_tag("#3c8dbc")

  • success: shinydashboardPlus:::rd_color_tag("#00a65a")

  • info: shinydashboardPlus:::rd_color_tag("#00c0ef")

  • warning: shinydashboardPlus:::rd_color_tag("#f39c12")

  • danger: shinydashboardPlus:::rd_color_tag("#f56954")

style

label border style: "default" (rounded angles), "circle" or "square".

Author

David Granjon, dgranjon@ymail.com

Examples

Run this code
if (interactive()) {
  library(shiny)
  library(shinydashboard)
  library(shinydashboardPlus)

  shinyApp(
    ui = dashboardPage(
      dashboardHeader(),
      dashboardSidebar(),
      dashboardBody(
        dashboardLabel("Label 1", status = "info"),
        dashboardLabel("Label 2", status = "danger", style = "circle"),
        dashboardLabel("Label 3", status = "success", style = "square")
      )
    ),
    server = function(input, output) { }
  )
}

Run the code above in your browser using DataLab