reactable icon indicating copy to clipboard operation
reactable copied to clipboard

Accessing properties of subtables in Shiny

Open ajirnyi opened this issue 5 years ago • 2 comments

When there is a reactable() subtable (added in details section, like in the Shiny example), is it possible to set an id for it, or otherwise access its properties like row selection etc., from Shiny?

ajirnyi avatar Aug 21 '20 15:08 ajirnyi

Looks like reactableOutput() works in details section -- hopefully it keeps working, and might be worth mentioning in the documentation :)

ajirnyi avatar Aug 21 '20 21:08 ajirnyi

While it does work, it appears that any selection on the subtables is reset when they are folded/unfolded -- it seems that unfolding entirely removes the element (rather than just hides it), and when it's re-created, it's initialized with no selection. Is there a good way to deal with this?

Actually ATM the main reason I'm using the nested tables is trying to have a workaround for the selection checkboxes not being in the left column when grouping is present; but I can definitely see using them for other purposes, and it would be nice to know if it's possible to retain their state between folding & unfolding.

ajirnyi avatar Aug 22 '20 00:08 ajirnyi