glin / reactable

Interactive data tables for R
https://glin.github.io/reactable
Other
627 stars 80 forks source link

Extract elementId when manipulating a cell #375

Open uriahf opened 3 months ago

uriahf commented 3 months ago

I wonder if there is an easy way to extract the elementId of the reactable being manipulated while writing a custom JS function.

It would be nice to have the elementId as part of the cellInfo properties.

I guess an easy workaround would be just to insert the elementId in meta.state.

glin commented 3 months ago

Good idea! should be quite simple to do. It'd probably fit better on the table state. And yeah, I guess you could just use meta for now.