RedHeadphone / react-json-grid

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

is any event to obtain a selected item? #15

Closed VelascoPale closed 1 week ago

VelascoPale commented 3 months ago

on https://jsongrid.com/json-parser when our selects a value into the grid, it is been selected on json editor, do u use an event to obtain the selected item?

RedHeadphone commented 3 months ago

I am not the owner of https://jsongrid.com/. This React component library is just a clone of the UI. But having an event "onSelect" that takes a handler function with the parameter "keyPath" (list of keys that leads to the selected cell) seems a good idea to integrate into this component.

RedHeadphone commented 1 week ago

@VelascoPale I have published this feature, you can find it in v0.6.0 on npm. Let me know if you find any issues!