Skip to content

Minimalistic javascript tree view. Without dependencies and IE5+ compatible

Notifications You must be signed in to change notification settings

gagarinbefree/mini-tree-view-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-tree-view-js

Minimalistic javascript tree view

Get started:

• JavaScript

window.onload = function () {
        var data = [
                {
                        name: "1 Level 1 Leaf 1",
                        childs: [
                                {
                                        name: "4 Level 2 Leaf 1",                        
                                },
                                {
                                        name: "5 Level 2 Leaf 2"
                                }
                        ]
                },
                {
                        name: "3 Level 1 Leaf 3"
                }
        ];

        var tree = new minitree(data, {
                container: document.getElementById('container'),
                clickHandler: function (e) {
                        var target = (typeof (e.target) !== 'undefined') ? e.target : e.srcElement;
                        // ... //
                }
        });
}

About

Minimalistic javascript tree view. Without dependencies and IE5+ compatible

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published