Mif.Tree 1.2.6.4

The most famouse mootools tree for web applications.



Details

Author
Anton Samoylov
Current version
1.2.6.4
GitHub
creaven/miftree
Downloads
49931
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_:
    • Mif.Tree
    • More/Fx.Scroll
    • Mif.Tree.Drag
    • Mif.Tree.Transform
  • Core:1.2.4/*/Core: 1.2.4
  • more:/Drag.Move/more:

How to use

demo docs

tree = new Mif.Tree({
    container: $('tree_container'),// tree container
    types: {// node types
        folder: {
            openIcon: 'mif-tree-open-icon',//css class open icon
            closeIcon: 'mif-tree-close-icon'// css class close icon
        }
    },
    dfltType: 'folder',//default node type
    height: 18//node height
});

var json = [
    {
        "property": {
            "name": "root"
        },
        "children": [
            {
                "property": {
                    "name": "node1"
                }
            },
            {
                "property": {
                    "name": "node2"
                },
                "state": {
                    "open": true
                },
                "children":[
                    {
                        "property": {
                            "name": "node2.1"
                        }
                    },
                    {
                        "property": {
                            "name": "node2.2"
                        }
                    }
                ]
            },
            {
                "property": {
                    "name": "node4"
                }
            },
            {
                "property": {
                    "name": "node3"
                }
            }
        ]
    }
];

// load tree from json.
tree.load({
    json: json
});

Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus