dashboardBadge {shinydashboardPlus} | R Documentation |
AdminLTE2 badge
Description
Create a badge. It may be inserted in any element like inside a actionButton or a dashboardSidebar.
Usage
dashboardBadge(..., color)
Arguments
... |
Any html text element. |
color |
label color. See below:
|
Author(s)
David Granjon, dgranjon@ymail.com
Examples
if (interactive()) {
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
dashboardBadge("Badge 1", color = "blue"),
actionButton(
inputId = "badge",
label = "Hello",
icon = NULL,
width = NULL,
dashboardBadge(1, color = "orange")
)
)
),
server = function(input, output) { }
)
}
[Package shinydashboardPlus version 2.0.4 Index]