How to store multiple data points in once cell ? #2998
Unanswered
damnitrahul
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All the examples on the website have rows data structure mostly flat like
[key: string]: string | number
What if I want to store and display multiple data keys in one cell?
eg: If I have an editor component in the cell which edits 3 things.
the data for the cell will be something like
I would have to handle this kind of data structure in my formatters and editor accordingly.
The closest example I could find was the
tree-view
example on the demo site, where there was the need to store multiple children.But all the
children
data was added to the row object directly instead of adding it inside of a cell key.Option 1 (used in the example site)
Option 2 (how i want to do)
So my question is, Are there any drawbacks or issues I may come across if I structure my rows like option 2 and not option 1?
Beta Was this translation helpful? Give feedback.
All reactions