Add ability for tree not to be fully condensed by default
popey456963 opened this issue · 3 comments
popey456963 commented
Sometimes it would be nice to default to expanding, for instance, the first level.
braebo commented
In the meantime, does anyone know how to do this manually?
tanhauhau commented
with v1.0.0
you can control which paths / level to be expanded by default:
<JsonTree {value} defaultExpandedPaths={['$.a.d.h.1', '$.c.e.*']} />
or
<JsonTree {value} defaultExpandedLevel={1} />
popey456963 commented
Woo, thanks so much for this!