View source: R/djpr_with_spinner.R
djpr_with_spinner | R Documentation |
This function displays a spinner in place of Shiny UI elements while they are loading / refreshing
djpr_with_spinner(
ui_element,
type = 8,
colour = "#2A6FA2",
size = 0.8,
hide.ui = TRUE,
...
)
ui_element |
An element such as |
type |
|
colour |
Hex code for spinner |
size |
Numeric; Size relative to default (1 = default) |
hide.ui |
Logical. When |
... |
arguments passed to |
Use within UI script
## Not run:
plotOutput("plot") %>% djpr_with_spinner()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.