Artwork-themed loading screens for Shiny applications using the waiter package. Displays animated GIFs from the Artalytics CDN while content loads.
Usage
pathWaiterGifAsset(filename)
wait_art_html(msg = NULL, prog = NULL, type = "designs", which = NULL)Arguments
- filename
Character. GIF filename for internal path construction.
- msg
Character. Optional message displayed above the loading animation.
- prog
Character. Optional progress text displayed prominently below message.
- type
Character. Animation type:
"designs"for abstract patterns,"artworks"for artwork previews. Default:"designs".- which
Integer. Animation variant index (1-based). Different indices select different GIF files. Default: 1.
Value
For wait_art_html(): A list with:
- html
Shiny tag list containing the loading screen markup
- color
Background color hex code (
"#f8efe7")
Functions
pathWaiterGifAsset(): Construct CDN URL for waiter GIF assetwait_art_html(): Generate waiter HTML for loading screens
See also
Other ui-components:
button_factory(),
create_waiter(),
stats-box,
status_badge(),
status_class(),
ui-helpers,
waiter-reexports
Examples
if (FALSE) { # \dontrun{
# Basic loading screen
waiter <- wait_art_html(msg = "Loading artwork...")
# Use with waiter package
waiter::Waiter$new(
html = waiter$html,
color = waiter$color
)$show()
# With progress indicator
wait_art_html(msg = "Processing...", prog = "50%", type = "artworks", which = 3)
} # }
