reactable icon indicating copy to clipboard operation
reactable copied to clipboard

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

Open olivroy opened this issue 2 weeks ago • 1 comments

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?

olivroy avatar Jun 18 '24 15:06 olivroy