renderjson icon indicating copy to clipboard operation
renderjson copied to clipboard

Add 'show_all', 'hide_all' methods on top level renderjson element

Open movitto opened this issue 4 years ago • 0 comments

When called, these will walk down the renderjson DOM structure and invoke 'show' and 'hide' on all the appropriate elements.

Use like so:

const rj = renderjson({ js : 'on })
document.getElementById("test").appendChild(rj);

rj.show_all();
rj.hide_all();
// ^ wire these up to a button click, etc

movitto avatar Jun 19 '20 18:06 movitto