idAccessor on rowExpansion? #117
-
After following the guide on how to implement rowExpansion, I was able to click on one row but it was opening all of the rows. I realized that this was because I needed to signify a key/id to each entry with my .json file. Though, not until I discovered issue #90 was I able to find that I needed to ad So, my question is, am I potentially implementing my records incorrectly, or should |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The |
Beta Was this translation helpful? Give feedback.
-
Note added on the docs page. |
Beta Was this translation helpful? Give feedback.
The
idAccessor
property defaults toid
, so you only need to define it if your data has a different unique key (such asname
).This is covered in the docs here: https://icflorescu.github.io/mantine-datatable/examples/non-standard-record-ids.
That being said, maybe I should add a note on using non-standard IDs on the row expansion example page too.