View source: R/input-gifLoader.R
withImage | R Documentation |
Based on [shinycssloaders](https://github.com/daattali/shinycssloaders/blob/master/R/withSpinner.R)
withImage(
ui_element,
file_location = "https://media.giphy.com/media/vFKqnCdLPNOKc/giphy.gif",
size = 1
)
ui_element |
A UI element that should be wrapped with a spinner when the corresponding output is being calculated. |
file_location |
The file location of the image file (can be gif or png) |
size |
The size of the gif, relative to its default size. |
## Not run: withImage(plotOutput("my_plot"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.