-
Notifications
You must be signed in to change notification settings - Fork 79
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
Can details take both row and column argument ? #376
Comments
Yes, the second argument of the R function is the column name. For the default details column, that's actually a built-in column named reactable(
MASS::Cars93,
defaultColDef = colDef(
details = function(index, column) {
paste(index, column)
}
)
) Then use the row index and column name to determine what to render within that cell's row details. |
It's amazing, it works perfectly !
If this was possible you could even be thinking of being able to render several cells on the same row simultaneously (which does not seem to be possible right now) |
It's not possible, and today you'd have to manually limit and position the nested content. The only way to include those nested rows in the table, but it's going to be hard if the nested table doesn't share the same columns, even if we had the "tree table" feature where you could add arbitrary nested rows. |
Hello, looking at the doumentation I see in
?reactable
However when I try to pass 2 arguments the second argument is worth ".details", is that expected ?
What I am hoping to achieve is a table where each cell would contain a table itelf.
FYI each cell within a column would contain a table with a fixed set of columns but different number of rows.
The text was updated successfully, but these errors were encountered: