Skip to content

How to know which cells were edited? #96

Answered by nick-keller
danisal asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @danisal ,
There are multiple ways to achieve this.
This easiest way is to use the onBlur prop, only called when the user is done editing a cell. But it will not be called when the user adds a row, deletes a row, copy-pastes data...

The second, mote robust solution is to use onChange and to do some with between the received value and the current value. An example implementation of this can be found here.

Since this topic is probably the most requested I think it should be part of the core lib.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@danisal
Comment options

@nick-keller
Comment options

@danisal
Comment options

@danisal
Comment options

@nick-keller
Comment options

Answer selected by danisal
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants