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

With groupBy, I was wondering if row names could be placed in the latest group instead of taking a full column. #379

Open
olivroy opened this issue Jun 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@olivroy
Copy link

olivroy commented Jun 18, 2024

library(reactable)
# https://github.com/glin/reactable/issues/94
mtcars |> 
  reactable(
    groupBy = c("cyl", "vs"),
    defaultExpanded = TRUE,
    columns = list(
      cyl = colDef(name = "", grouped = JS("
      function(cellInfo) {
        return cellInfo.value
      }"))
      
    )
  )

image

Like this, moved under the last group?

@glin glin added the enhancement New feature or request label Jul 2, 2024
@glin
Copy link
Owner

glin commented Jul 2, 2024

It's not possible because of the way grouping is implemented, but similar ideas come up occasionally and I can group this with other feature requests about creating a flatter sort of "tree table": #112, #147

@olivroy
Copy link
Author

olivroy commented Jul 19, 2024

Thanks! And this may relate to #383 . I think that rowGroupStyle has no effect.

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

2 participants