-
Notifications
You must be signed in to change notification settings - Fork 73
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
OnEdit #2
Comments
@imbundle did you ever find a way to do this? I'm also seeing issues with the value returned from onEdit doesnt seem to contain the selected rows. |
well the onEdit is pretty stubbed out (it passes in a dummy function), but the prototype for onEdit in this example shows that it passes the table instance through to the callback, so you can see what's selected by accessing |
I'll add, that this is more of a random example about how to get typescript working with react-table v7 - it's very limited, intentionally. |
@ggascoigne hey thanks for the reply. I still must be missing something. Just dumping the returned value from your dummy function im not seeing .selectedFlatRows. |
nvm I figured this out. The value returned by the first callback was hidden by the second due to they are both named a :( Thanks for the help on this Guy! |
I am having the same problem with using onAdd and onEdit and I am not seeing |
Take a look at 7080fba, it should make things clearer. Note that I was in a hurry so all it does is log to the console. |
Thanks, It helped a lot ! |
How can I access to the selected row after select one row and click onEdit?
The text was updated successfully, but these errors were encountered: