This is wrapper function on the top of waiter
for data curator app.
dca_waiter(
stage = c("show", "update", "hide"),
id = NULL,
user.name = "DCA User",
is.landing = FALSE,
is.stop = FALSE,
sleep = 2,
is.certified = TRUE,
is.permission = TRUE,
msg = NULL,
spin = NULL,
color = NULL
)
Type of waiter, 'show' to initiate waiter screen, 'update' to update a waiter screen, or 'hide' to hide a waiter screen.
Id of element to hide or element on which to show waiter over.
Name of user.
Whether the waiter screen is used for landing process, including landing page, login failed pages, and welcome page.
Whether the waiter screen will be stopped after rendered.
Time to keep the loading screen before hiding - recommend to give at least 2s to let users view the page.
Whether the user is synapse certified.
Whether the user have sufficient permission to the fileview.
Message displayed in the waiter screen.
Spinner displayed in the waiter screen.
Background color of the waiter screen.
show, update, or stop a waiter screen.
if (interactive()) {
# check the waiter tab in the gallery
dcamodules::showcase()
}