Learn R Programming

shinydashboardPlus (version 0.8.0.9000)

dashboardBadge: AdminLTE2 badge

Description

Create a badge.

Usage

dashboardBadge(..., color = "blue")

Arguments

...

Any html text element.

color

label color.

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(shinydashboard)
 shinyApp(
  ui = dashboardPage(
    dashboardHeader(),
    dashboardSidebar(),
    dashboardBody(
     dashboardBadge("Badge 1"),
     actionButton(
      inputId = "badge", 
      label = "Hello", 
      icon = NULL, 
      width = NULL, 
      dashboardBadge(1, color = "orange")
     )
    )
  ),
  server = function(input, output) { }
 )
}

# }

Run the code above in your browser using DataLab