m-sureshraj / dom_tree

🌲 Convert JavaScript Object, Array, and JSON into an interactive HTML tree view

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose a method to update the initialized tree

m-sureshraj opened this issue · comments

const node = document.querySelector('.foo');
const options = { data: {}, theme: 'darcula' };

const dt = new DomTree(options, node);
dt.init();

dt.update({ theme: 'one-dark' });