You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to do something at the cell level that is triggered when any part of the row that this one cell is in is clicked.
My question is how I might pass something at the table row level (where a table.getRowModel().rows.map() is running e.g.) down to a specific cell, so that I can access it in its ColumnDef entry. This way I could pass through a ref or callback from the row.
More specific details in this shadcn discussion post. I essentially want to also be able to toggle a sheet that is defined in a cell with a trigger from a row click.
I'm using v8 and flexRender and thought somehow through maybe I can splice it in with the data it gets from cell.getContext(), but I don't know how I'd retrieve that at the cell level.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to do something at the cell level that is triggered when any part of the row that this one cell is in is clicked.
My question is how I might pass something at the table row level (where a
table.getRowModel().rows.map()
is running e.g.) down to a specific cell, so that I can access it in itsColumnDef
entry. This way I could pass through a ref or callback from the row.More specific details in this shadcn discussion post. I essentially want to also be able to toggle a sheet that is defined in a cell with a trigger from a row click.
I'm using v8 and
flexRender
and thought somehow through maybe I can splice it in with the data it gets fromcell.getContext()
, but I don't know how I'd retrieve that at the cell level.Beta Was this translation helpful? Give feedback.
All reactions