dashboardLabel | R Documentation |
Create a label
dashboardLabel(..., status, style = "default")
... |
any text. |
status |
label status. Valid statuses are defined as follows:
|
style |
label border style: "default" (rounded angles), "circle" or "square". |
David Granjon, dgranjon@ymail.com
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) { }
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.