This creates a vertical progress bar.
progressBar(
value,
min = 0,
max = 100,
vertical = FALSE,
striped = FALSE,
animated = FALSE,
status = "primary",
size = NULL,
label = NULL
)
Progress bar value. Must be between min and max.
Progress bar minimum value (0 by default).
Progress bar maximum value (100 by default).
Progress vertical layout. Default to FALSE
Whether the progress is striped or not. FALSE by default.
Whether the progress is active or not. FALSE by default. Works only if striped is TRUE.
Progress bar status. "primary" by default or "warning", "info", "danger" or "success". Valid statuses are defined as follows:
primary
: #3c8dbc
success
: #00a65a
info
: #00c0ef
warning
: #f39c12
danger
: #f56954
Progress bar size. NULL by default: "sm", "xs" or "xxs" also available.
Progress label. NULL by default.
if (interactive()) {
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
shinyApp(
ui = dashboardPage(
header = dashboardHeader(),
sidebar = dashboardSidebar(),
body = dashboardBody(
box(
title = "Horizontal",
progressBar(
value = 10,
striped = TRUE,
animated = TRUE,
label = "10%"
),
progressBar(
value = 50,
status = "warning",
size = "xs"
),
progressBar(
value = 20,
status = "danger",
size = "sm"
)
),
box(
title = "Vertical",
progressBar(
value = 10,
striped = TRUE,
animated = TRUE,
vertical = TRUE
),
progressBar(
value = 50,
status = "warning",
size = "xs",
vertical = TRUE
),
progressBar(
value = 20,
status = "danger",
size = "sm",
vertical = TRUE
)
)
),
title = "Progress bars"
),
server = function(input, output) { }
)
}