rstudio / bslib

Tools for theming Shiny and R Markdown via Bootstrap 3, 4, or 5.
https://rstudio.github.io/bslib/
Other
490 stars 58 forks source link

input_task_button - downloadButton equivalent #1138

Open jack-davison opened 18 hours ago

jack-davison commented 18 hours ago

Hello,

Big fan of input_task_button()

Sometimes a downloadButton may take a little while to prepare its contents (e.g., if you're downloading a shapefile, you may need to write it to a temp directory, zip that file, and then download that zipped file) and I wouldn't want a user to hammer the download button over and over.

So, my question is - is there an equivalent for shiny::downloadButton() on the horizon?

Or is there already a way to link up input_task_button() to a download manager?

Cheers!

gadenbuie commented 17 hours ago

This would be a good fit for the "v2 API" I've proposed in #1077. I think it might be relatively easy to implement, but for backwards compatibility reasons it'd be much easier to do in a new function