Create a Bootstrap 4 progress bar.
attendantBar(
id,
value = 0,
min = 0,
max = 100,
text = NULL,
color = c("primary", "info", "success", "danger", "warning"),
striped = FALSE,
animated = FALSE,
height = 20,
width = "100%",
class = "",
style = "",
bg_color = "#f5f5f5",
hidden = FALSE
)
A unique identifier for the progress bar. Used in `Attendant` class for handling.
Initial value, minimum, and maximum values the progress bar can take.
Optional text to display on the progress bar. This can then be dynamically modified with `Attendant`.
Whether the progress bar should be striped.
Whether to animate the stripe on the progress bar.
Height of the progress bar, numerical values are converted to pixels (`px` CSS), any other valid CSS size is valid too.
Width of the bar, defaults to `100 values (e.g.: `42`) are converted to pixels (`px`).
Additional style and class to pass to the parent wrapper of the progress bar.
Color, and background color of the progress bar.
Set to `TRUE` to initialise the attendant as hidden, it will be made visible when set to a value.