Open statquant opened 3 weeks ago
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 .details
which you can ignore. If you want to add row details to every cell, you can use the default column definition:
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.
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.