treejs icon indicating copy to clipboard operation
treejs copied to clipboard

A lightweight tree widget, compatible with VanillaJS / React / Vue. Tiny size after gzip. Zero dependence.

Results 28 treejs issues
Sort by recently updated
recently updated
newest added

is there a possible way that i can expand just one level of the tree ? so my tree has like 5 levels and i only want to open one...

I have added a onNodeSelect option, in which user can get the information of the node which is click.

Hello, Strange problems, please see code bellow ` let data = [{"id":1,"text":"Home","checked":true,"children":[{"id":7,"text":"TimeTable","checked":true,"children":[{"id":8,"text":"Staff Att","checked":true,"children":[]}]}]},{"id":2,"text":"Student","checked":true,"children":[]},{"id":3,"text":"Staff","checked":true,"children":[]},{"id":4,"text":"Library","checked":true,"children":[{"id":9,"text":"Book Issue","checked":true,"children":[]},{"id":10,"text":"Book Return","checked":true,"children":[]},{"id":11,"text":"Book Fine","checked":true,"children":[{"id":12,"text":"Fee Payment","checked":true,"children":[]}]}]},{"id":6,"text":"StudentAtt","checked":true,"children":[]}] let tree = new Tree('.treeContainer', { data: [{ id: '-1', text: 'root', children:...

I got a JS-Error when I try to get data via Url: > Uncaught TypeError: can't convert undefined to object This is the code: ``` const myTree = new Tree('#myTree',...

Instead of just collapsing the nodes on the exact level it makes more sense to do so in all the levels below it as well

It would useful to know which node triggered the change. This edit passes the node id to the onChange callback

This component does not appear to work in Internet Explorer 11 under Windows 10. It requires polyfills for Object.assign/entries/values.

Basic support for rendering node with HTML label. Example: ```` { "id": "1-0-1", "html": "node-1-0-1 Hello, world!", }, ```` Result: ![image](https://user-images.githubusercontent.com/3855027/82265302-89020880-991b-11ea-9de6-93fc2156f376.png)

I make great use of the library, thanks a lot! Below is more of an idea than issue. I found that it should be nice to have some hook/callback to...