glin / reactable

Interactive data tables for R
https://glin.github.io/reactable
Other
612 stars 79 forks source link

Download Link into cell in reactable, in column as html #345

Open henrique1008 opened 8 months ago

henrique1008 commented 8 months ago

https://stackoverflow.com/questions/73997808/how-to-use-downloadhandler-for-download-buttons-create-inside-shiny-reactable

I need to insert a download button into reactable, in column as html

but i don´t know how to make this work into shiny

It´s possible ?

glin commented 7 months ago

Hi, so Shiny inputs/outputs are supported out-of-box by the custom row details, but not cells yet. I wanted to add support within cells at some point but I think it was just too rare of a use case.

For now, there are a few ways to achieve similar things to DT's preDrawCallback/drawCallback. I wrote up the options in a different issue, so I'll just link that: https://github.com/glin/reactable/issues/310#issuecomment-1407768327

You might have the best luck trying out the Reactable.onStateChange() method.