Public methods
Method new()
Usage
Waiter$new(
id = NULL,
html = NULL,
color = NULL,
logo = NULL,
image = "",
hide_on_render = !is.null(id),
hide_on_error = !is.null(id),
hide_on_silent_error = !is.null(id)
)
Arguments
idId, or vector of ids, of element on which to overlay the waiter, if NULL the waiter is
applied to the entire body.
htmlHTML content of waiter, generally a spinner, see spinners or a list of the latter.
colorBackground color of loading screen.
logoLogo to display.
imagePath to background image of loading screen.
hide_on_renderSet to TRUE to automatically hide the waiter
when the element in id is drawn. Note the latter will work with
shiny plots, tables, htmlwidgets, etc. but will not work with arbitrary
elements.
hide_on_error, hide_on_silent_errorWhether to hide the waiter when the underlying element throws an error.
Silent error are thrown by req and validate.
Details
Create a waiter.
Examples
\dontrun{Waiter$new()}
Method show()
Usage
Waiter$show()
Details
Show the waiter.
Method hide()
Usage
Waiter$hide()
Details
Hide the waiter.
Method update()
Usage
Waiter$update(html = NULL)
Arguments
htmlHTML content of waiter, generally a spinner, see spinners.
Details
Update the waiter's html content.
Method print()
Usage
Waiter$print()
Details
print the waiter
Method clone()
The objects of this class are cloneable with this method.
Usage
Waiter$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.