attendantBar: Bootstrap 4 Loading Bar

Description Usage Arguments

View source: R/attendant.R

Description

Create a Bootstrap 4 progress bar.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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
)

Arguments

id

A unique identifier for the progress bar. Used in Attendant class for handling.

value, min, max

Initial value, minimum, and maximum values the progress bar can take.

text

Optional text to display on the progress bar. This can then be dynamically modified with Attendant.

striped

Whether the progress bar should be striped.

animated

Whether to animate the stripe on the progress bar.

height

Height of the progress bar, numerical values are converted to pixels (px CSS), any other valid CSS size is valid too.

width

Width of the bar, defaults to 100%, numerical values (e.g.: 42) are converted to pixels (px).

class, style

Additional style and class to pass to the parent wrapper of the progress bar.

bg_color, color

Color, and background color of the progress bar.

hidden

Set to TRUE to initialise the attendant as hidden, it will be made visible when set to a value.


waiter documentation built on Jan. 3, 2022, 5:13 p.m.