Documentation v8.2.7

Downloads Preview
jsTree is jquery plugin, that provides interactive trees. For more info please visit the plugin's Home or Github Repo.

Checkable Tree

Here's a jsTree example with a checkable tree. For more info, please visit the official website.
$('#kt_docs_jstree_checkable').jstree({
    'plugins': ["wholerow", "checkbox", "types"],
    'core': {
        "themes" : {
            "responsive": false
        },
        'data': [{
                "text": "Same but with checkboxes",
                "children": [{
                    "text": "initially selected",
                    "state": {
                        "selected": true
                    }
                }, {
                    "text": "custom icon",
                    "icon": "ki-solid ki-timer text-danger"
                }, {
                    "text": "initially open",
                    "icon" : "ki-solid ki-folder text-default",
                    "state": {
                        "opened": true
                    },
                    "children": ["Another node"]
                }, {
                    "text": "custom icon",
                    "icon": "ki-solid ki-timer text-waring"
                }, {
                    "text": "disabled node",
                    "icon": "ki-solid ki-check text-success",
                    "state": {
                        "disabled": true
                    }
                }]
            },
            "And wholerow selection"
        ]
    },
    "types" : {
        "default" : {
            "icon" : "ki-solid ki-folder text-warning"
        },
        "file" : {
            "icon" : "ki-solid ki-file  text-warning"
        }
    },
});
<div id="kt_docs_jstree_checkable"></div>
Preview Get Help Buy Now