tanhauhau/svelte-json-tree

Add ability for tree not to be fully condensed by default

popey456963 opened this issue · 3 comments

Sometimes it would be nice to default to expanding, for instance, the first level.

In the meantime, does anyone know how to do this manually?

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} />

Woo, thanks so much for this!