Manage the attendant loading bar with bootstrap 4.
max
Maximum value of the bar.
new()
Attendant$new(
id,
min = NULL,
max = NULL,
session = shiny::getDefaultReactiveDomain(),
hide_on_max = FALSE
)
id
Id of progress bar set with [attendantBar].
min, max
Minimum and maximum value of the progress bar.
session
A valid shiny session.
hide_on_max
Whether to hide the progress bar when it reaches its maximum value (defined in [attendantBar]). The progress bar automatically becomes visible again when it is set to a value below the maximum.
Initialise a progress bar
inc()
Attendant$inc(value = 1, text = NULL)
value
Value to increase the progress bar.
text
Text to display on the progress bar.
Increase
dec()
Attendant$dec(value = 1, text = NULL)
value
Value to decrease the progress bar.
text
Text to display on the progress bar.
Decrease
set()
Attendant$set(value, text = NULL)
value
Value to set the progress bar.
text
Text to display on the progress bar.
Set
done()
Attendant$done(text = NULL)
text
Text to display on the progress bar.
Done with progress
close()
Attendant$close(text = NULL)
text
Text to display on the progress bar.
Done with progress
auto()
Attendant$auto(ms = 400, value = 1)
ms
Milliseconds between increment of `value`.
value
Value to increment by at every `ms`.
Automatically increase the progress bar until done
getMin()
Attendant$getMin()
Get minimum value
getMax()
Attendant$getMax()
Get maximum value
getValue()
Attendant$getValue()
Get current value
clone()
The objects of this class are cloneable with this method.
Attendant$clone(deep = FALSE)
deep
Whether to make a deep clone.