bs4ProgressBar | R Documentation |
Create a Bootstrap 4 progress bar.
bs4ProgressBar( value, min = 0, max = 100, vertical = FALSE, striped = FALSE, animated = FALSE, status = "primary", size = NULL, label = NULL ) bs4MultiProgressBar( value, min = 0, max = 100, vertical = FALSE, striped = FALSE, animated = FALSE, status = "primary", size = NULL, label = NULL ) progressBar( value, min = 0, max = 100, vertical = FALSE, striped = FALSE, animated = FALSE, status = "primary", size = NULL, label = NULL ) multiProgressBar( value, min = 0, max = 100, vertical = FALSE, striped = FALSE, animated = FALSE, status = "primary", size = NULL, label = NULL )
value |
Progress bar value. |
min |
Progress bar minimum value. |
max |
Progress bar maximum value. |
vertical |
Whether to display the progress bar in vertical mode. FALSE by default. |
striped |
Whether the progress bar is striped or not. FALSE by default. |
animated |
Whether to animate the progress bar. Default to FALSE. |
status |
Progress bar status. Valid colors are defined as follows:
|
size |
Progress bar size. NULL, "sm", "xs" or "xxs". |
label |
Progress label. NULL by default. |
For multiProgressBar()
, value
can be a vector which
corresponds to the progress for each segment within the progress bar.
If supplied, striped
, animated
, status
, and label
must be the
same length as value
or length 1, in which case vector recycling is
used.
David Granjon, dgranjon@ymail.com
if(interactive()){ library(shiny) library(bs4Dash) shinyApp( ui = dashboardPage( header = dashboardHeader(), sidebar = dashboardSidebar(), body = dashboardBody( box( title = "Horizontal", progressBar( value = 10, striped = TRUE, animated = TRUE ), progressBar( value = 50, status = "warning", size = "xs" ), progressBar( value = 20, status = "danger", size = "sm" ), multiProgressBar( value = c(50, 20), status = c("warning", "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 ), multiProgressBar( value = c(50, 20), status = c("warning", "danger"), size = "sm", vertical = TRUE ) ) ), title = "Progress bars" ), server = function(input, output) { } ) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.