RedHeadphone / react-json-grid

🔄 Effortlessly transform complex nested JSON into grid tables
https://npmjs.com/package/@redheadphone/react-json-grid
MIT License
18 stars 4 forks source link

Add Expand Key-Tree Feature #8

Closed RedHeadphone closed 1 year ago

RedHeadphone commented 1 year ago

A prop that accepts key-tree (tree like structure object with all keys that needs to be expanded) and expands all grid according to the key-tree. This can be useful if someone wants to keep selective nested grid open by default.

https://github.com/RedHeadphone/react-json-grid/issues/3#issuecomment-1741991493

RedHeadphone commented 1 year ago

this structure will be best for #2, we can search data beforehand and make expand key-tree object, and pass that to NestedJSONGrid.