tanhauhau/svelte-json-tree

[Feature Request] turn display of JSON on/off

WillFreitag opened this issue · 1 comments

Currently every node has its json-string to the right (sometimes underneath):

grafik

What about having a switch to enable/disable this?
Something like this:

grafik

I really believe, that having the JSON displayed is a nice features but there are use cases, where it's more comfortable to read without.

What do you think?

This should be fixed in v2.1.0. Introduced shouldShowPreview:

<JsonNode {value} shouldShowPreview={false} />