xyc/react-object-inspector

Feature request: collapsed / expanded state / root node

Closed this issue · 2 comments

I would like to be able to specify the collapsed / expanded state of the component:

a) expand a specific path "object.foo.bar"

b) expand noes down to a specific level number - ex: level 1 expands "object.keys" and level 2 expands "object.keys.keys"

Would also be nice to be able to override the label for the root node.

xyc commented

Will consider adding an initial expanded/collapsed option props.
You can specify the 'name' prop to set the root node label

xyc commented

This issue is resolved in 0.2.0. See readme for more details.