-
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
Is it possible to remove parenthesis from groups? #94
Comments
It's not possible today, even with custom JS, but it's been requested before (#33). I'll put it on the list to include for the next release. The usage will probably look something like this: reactable(
iris,
groupBy = "Species",
columns = list(
Species = colDef(
# Custom renderer for a grouped cell
grouped = JS("function(cellInfo) {
// Display just the cell value
return cellInfo.value
// Or display the cell value with the sub row count (the default)
return cellInfo.value + '(' + cellInfo.subRows.length + ')'
}")
)
)
) |
Thanks for the info Greg! I looked for the issue but did not find it.
Have a nice day :)
|
It's now possible to customize grouped cell rendering in the development version, using the syntax from above (1297d0c). I added some live examples of this to the docs: https://glin.github.io/reactable/articles/examples.html#grouped-cell-rendering |
With the current version 0.2.3 it can be achieved with custom css, see here: https://stackoverflow.com/a/70755757/9239948 |
Using
groupBy
adds a default count to the group:Is it possible to hide the default count? I´ve tried using custom JS with no success:
Best regards.
The text was updated successfully, but these errors were encountered: