withImage: Add a image that shows when an output is recalculating

View source: R/input-gifLoader.R

withImageR Documentation

Add a image that shows when an output is recalculating

Description

Based on [shinycssloaders](https://github.com/daattali/shinycssloaders/blob/master/R/withSpinner.R)

Usage

withImage(
  ui_element,
  file_location = "https://media.giphy.com/media/vFKqnCdLPNOKc/giphy.gif",
  size = 1
)

Arguments

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.

Examples

## Not run: withImage(plotOutput("my_plot"))

datasketch/shinyinvoer documentation built on June 2, 2025, 2:14 a.m.