glin / reactable

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

Is it possible to detect that a row has been deselected? #235

Closed gfspiteri closed 2 years ago

gfspiteri commented 2 years ago

Hello, excellent work with reactable. I am developing a shiny app where I want to show an action button when a row is selected and hide it when there are no rows selected (using shinyJS). I am using getReactableState() to detect the row selection but I cannot figure out how to detect that no row is selected. Is this currently possible? I will try to post a reprex if unclear. Many thanks!

gfspiteri commented 2 years ago

Figured it out. Bad code. Apologies.