Description Usage Arguments See Also Examples
An info box displays a large icon on the left side, and a title, value (usually a number), and an optional smaller subtitle on the right side. Info boxes are meant to be placed in the main body of a dashboard.
1 2 3 |
title |
Title text. |
value |
The value to display in the box. Usually a number or short text. |
subtitle |
Subtitle text (optional). |
icon |
An icon tag, created by |
color |
A color for the box. Valid colors are listed in validColors. |
href |
An optional URL to link to. |
fill |
If |
prog |
Process text (optional). |
prog_width |
The value of process. |
Other boxes: box2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## Only run this example in interactive R sessions
if (interactive()) {
library(shiny)
library(shinydashboard)
server <- function(input, output) {
output$infoBox_process <- renderInfoBox({
infoBox2(
'Info', 'some text', width = 6,
fill = TRUE, prog = "Process", prog_width = '70%'
)
})
}
body <- dashboardBody(
infoBoxOutput(outputId = 'infoBox_process')
)
ui <- dashboardPage(
dashboardHeader(disable = TRUE),
dashboardSidebar(disable = TRUE),
body
)
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.