alexkuz / react-json-tree

React JSON Viewer Component, Extracted from redux-devtools
MIT License
989 stars 115 forks source link

get name property and key on valueRenderer #92

Open roberto-slopez opened 7 years ago

roberto-slopez commented 7 years ago

It is possible to obtain the name of the property and the key of the property in labelRenderer and valueRenderer

I try passed delta diff [https://github.com/benjamine/jsondiffpatch], I need key for get change on delta

delta: is a array diffs of json

dorner commented 6 years ago

+1 for this.

cephirothdy2j commented 6 years ago

It's not documented but per this line the key path is just some additional arguments passed to valueRenderer.