Skip to content
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

Extract elementId when manipulating a cell #375

Open
uriahf opened this issue Jun 2, 2024 · 1 comment
Open

Extract elementId when manipulating a cell #375

uriahf opened this issue Jun 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@uriahf
Copy link

uriahf commented Jun 2, 2024

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
Copy link
Owner

glin commented Jul 1, 2024

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.

@glin glin added the enhancement New feature or request label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants