glin/reactable

Responsive expandable details

olivroy opened this issue · 1 comments

Hi,

I was wondering if there was something similar in reactable as
DT::datatable(data, extensions = "Responsive")
That uses the viewer or browser current state, and collapses rows in details automatically.

document here https://rstudio.github.io/DT/extensions.html at 8. Responsive

Thanks

glin commented

Hi, there's nothing specifically like this in reactable, but similar feature ideas do come up from time to time. Currently, the approach to responsively handling wide tables is to allow horizontal scrolling when all the columns don't fit. For example, see the Column Resizing and Sticky Columns examples. This is a simple solution that seems to work in most cases.

Besides that, reactable does have expandable row details but it's all-or-nothing, not something that can be toggled from page widths changing.