glin / reactable

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

Responsive expandable details #329

Open olivroy opened 1 year ago

olivroy commented 1 year ago

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 1 year ago

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.