daattali / shinycssloaders

⌛ Add loading animations to a Shiny output while it's recalculating
https://daattali.com/shiny/shinycssloaders-demo/
Other
395 stars 45 forks source link

Show custom image when loading? #46

Closed wfjvdham closed 3 years ago

wfjvdham commented 4 years ago

Would it not be a nice feature if users can pass their own image file to display when loading? Or is this implemented somewhere already?

daattali commented 4 years ago

Looks like there's a package that extends this one https://github.com/emitanaka/shinycustomloader

daattali commented 3 years ago

@wfjvdham I've implemented this in https://github.com/daattali/shinycssloaders/commit/f88445160f0286823db014db72f92087ad1a2c7f

You can use withCustomSpinner() instead of withSpinner(). Please test and let me know if it works as expected.

daattali commented 3 years ago

Update: instead of withCustomSpinner(), I changed it so that you still use withSpinner() with an image parameter

wfjvdham commented 3 years ago

Nice! I like it