shinycustomloader
shinycustomloader copied to clipboard
Custom Gif Resize Option
Hi, I really like to the option to add custom GIF image, So anybody can use their Branded and Trademark GIF for Loading. But there should be option for resizing the GIF as I have checked it depends on the Size of Output. For Small Output option it fits perfectly but it when the output is Large in width and height it expands by default.
Example:
Hi Sub, I just can't put my loader to work. I've created the "www" folder "inside" my Shiny app folder but nothing. My gif works just fine outside the app, as a gif image, but I get nothing inside the app. How did you get it to work? Did you use any path in the "loader" parameter? By the way did you found a way to resize or fix the size of your custom loader? Thnks in advance!!!
Hi @XJRULO ,
I kept all the Gif images in the "www" folder and used this following code:
withLoader(highchartoutput("top_right_plot"), type="image", loader="loader.gif")
It is working fine. I am working to fix it from CSS side.
Hi Sub, it seems that it has to do with the way one develop the app, specifically if you name the app file app.R or not, if you split the code in one ui, server and app file. I wouldn't ever imagine that this was the main issue, as many other in forums have said. Anyway Thnks for the answer anyway. We'll see around.
Hi @emitanaka, any thoughts on this thread? It would be a nice option to be able to resize the gifs
In case it helps to anyone,
the package shinycssloaders allows the addition of custom loaders with the image
parameter, and the resizing works much better with the size
parameter.