Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row Group #112

Open
food-data-sci opened this issue Jan 5, 2021 · 2 comments
Open

Row Group #112

food-data-sci opened this issue Jan 5, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@food-data-sci
Copy link

Is there a way to group rows in reactable and create headers, like the rowGroup functionality you can get in DT?

image
screenshot from https://rstudio.github.io/DT/extensions.html

I know you can group them and collapse the whole group but the indentation you get after the group doesn't look great with multiple levels of grouping. + I want the 'headers' visible without a need to expand rows.

Perhaps there's a way to get from collapsible groups to a headed table, like the one in the example I pasted?

@glin
Copy link
Owner

glin commented Jan 23, 2021

No, this isn't possible today. The reactable(defaultExpanded = TRUE) option could remove the need to expand rows, but there's no way to change the row grouping behavior. However, I've had the same thought about indentation before, and always wished there was a way to create a flatter nested/tree table structure. A feature like that may come in the future, but I can't say when right now.

@glin glin added the enhancement New feature or request label Feb 6, 2021
@algo-se
Copy link

algo-se commented Mar 4, 2021

A "flatter nested/tree table structure" sounds awesome tbh 😄 I think that creating a tree structure in a table is much more powerful than using shinytree, etc.

jsTreeR is a package that kind of have this feature (see the jsTree grid) but nothing close to reactable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants