Custom hook to extend TanStack Table with Excel-like features #5613
Unanswered
odanieloliveira
asked this question in
Q&A
Replies: 1 comment
-
This is awesome - just wanted you to know. Great work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I've built a package that adds some Excel-like features to tanstack table such as cell selection (single and range), copy/paste, history of changes, cell editing. I've reproduced a working example of the package in this sandbox.
Even though this particular example works well, I have a more complex example that isn't fully working as expected but I can't reproduce in a sandbox due to dependencies, I've added it under a "broken code" folder in the sandbox. More specifically, when editing cells, the new values don't seem to be reflected when logging
table.getRowModel().rows[rowId].getValue(columnId)
but they do show up when loggingtable.getRowModel().rows[rowId].original[columnId]
(which I didn't expect since this is supposed to store the original values). The paste functionality is also not working in this particular example and I have no clue why.I understand it's hard to help without the full code to reproduce but I'm hopeful I'm just doing something obviously wrong to more experienced members of the community and also curious if you have any general feedback on my code and see obvious improvements to what I've done here.
Beta Was this translation helpful? Give feedback.
All reactions