How to extend the core row model? #5511
Unanswered
SpringsTea
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Have you found a solution to this problem? I'm facing the same issue..
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to add some extra functionality to the row model, to be able to store some metadata and functions to interact with that data.
I had thought I got it right, but i've created some incorrect behavior doing this.
Here is my custom row model:
I've simply added some functionality so that I can style a row when it's data has been saved.
I then add it to my table like this:
This appeared to work for a time, but I realized after some hair pulling that my custom model was causing my rows to not update.
Specifially the values returned by
table.getRowModel()
that I use to itterate through and create my rows. Even though the table data was being updated, the rows from this function never changed from their original state.Can someone point my in the direction I need to correctly extend the row model? There's not really any documentation on this.
Beta Was this translation helpful? Give feedback.
All reactions