-
Notifications
You must be signed in to change notification settings - Fork 80
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
Unexpected interaction between columnGroups and groupBy #87
Comments
Yes, this is intentional, and inherited from the underlying React Table library. However, it'll be removed in the next release, along with the For now, there's no way to get rid of that default column group, but you can give it an empty name. To make it look less awkward, you could also use a bordered style: reactable(
iris[1:5, ],
columns = list(
Sepal.Length = colDef(name = "Length"),
Sepal.Width = colDef(name = "Width"),
Petal.Length = colDef(name = "Length"),
Petal.Width = colDef(name = "Width")
),
columnGroups = list(
colGroup(name = "", columns = "Species"),
colGroup(name = "Sepal", columns = c("Sepal.Length", "Sepal.Width")),
colGroup(name = "Petal", columns = c("Petal.Length", "Petal.Width"))
),
groupBy = "Species",
bordered = TRUE
) In the next release, there won't be a column group unless you specifically create one: |
@glin , thanks for the quick response (and for the package as well :). What is the ETA of the next release? |
I don't have an ETA yet, and those changes aren't even up on GitHub. But I'll comment here again once it's available in the development version. |
The automatic column grouping is now removed in the development version (d9ac371). Since it could be a breaking change in some cases, I've marked it so in the NEWS: Breaking changes
|
If both
columnGroups
andgroupBy
arguments are provided, thegroupBy
column receives the default column header (seedefaultGroupHeader
inreactableLang()
).Is this intentional?
The text was updated successfully, but these errors were encountered: