
bsProgressBar(inputId, value = 0, visible = TRUE, color,
striped = FALSE, animate = FALSE)
updateProgressBar(session, inputId, value=NULL, visible=NULL,
color=NULL, striped=NULL, animate=NULL)
session
object passed to function given to shinyServer
logical
).standard
, warning
, danger
, info
, or success
. standard
by default.logical
).logical
).bsProgress
in the ui.R
script. They can then be updated using updateProgressBar
from server.R
.
When using updateProgressBar
only specify those arguments that you want to change. If you call updateProgressBar(value = 25)
then only the value will be updated and the other options will remain unchanged.## Create a striped, green progress bar.
## In ui.R
bsProgressBar("pb1", visible=FALSE, color="success", striped=TRUE)
## Update previous progress bar 'pb1' to be 25% filled and animated,
## In server.R
updateProgressBar("pb1", value=25, animate=TRUE)
Run the code above in your browser using DataLab