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

additional support for column groups in interactive tables #1618 #1623

Merged
merged 4 commits into from
Apr 17, 2024
Merged

additional support for column groups in interactive tables #1618 #1623

merged 4 commits into from
Apr 17, 2024

Conversation

obsaditelnost
Copy link
Contributor

@obsaditelnost obsaditelnost commented Apr 16, 2024

Summary

gt offers a very strong support for column groups (spanner labels) in static tables. The interactive table underlying reactable only offers a limited functionality but until now, gt didn't yet support colGroups at all for interactive tables. These changes transform the first layer of spanner-labels into colGroups:

gtcars %>%
  dplyr::select(model, year, mpg_c, mpg_h) %>%
  gt() %>%
  gt::tab_spanner("mpg", c(mpg_c, mpg_h)) %>%
  opt_interactive()

image

Related GitHub Issues and PRs

Checklist

Fixes: #1618

@rich-iannone
Copy link
Member

Thanks so much for submitting this PR! Will review shortly.

@rich-iannone rich-iannone self-requested a review April 17, 2024 19:42
Copy link
Member

@rich-iannone rich-iannone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rich-iannone rich-iannone merged commit a91321d into rstudio:master Apr 17, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add support for column groups in interactive tables
2 participants