Add support for groups in opt_interactive() via reactable groupBy
#1725
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
defaultExpanded = TRUE+groupByinreactable::reactable()data_tblinrender_as_i_html()Here is an implementation of showing
groupname_col. This feels incomplete, but wanted to get the ball rolling,Basically,
Now (hide group cols):

This PR:

Let me know if you can think of how this could be improved.
I think this opens the door to supporting
summary_rows().Is there a way to test (at least visually the interactive output. Maybe a new vignette that contains just examples could be created?
Just to visually be able to see what's going on, and if regressions are not introduced by my fiddling.
Limitations
cols_hide()respected?Advantage
Related GitHub Issues and PRs
groupname_coldisappears withopt_interactive()#1705Checklist
testthatunit tests totests/testthatfor any new functionality.