remove folder icon in jstree while using checkbox

everreadyeddy picture everreadyeddy · May 13, 2013 · Viewed 18k times · Source

How does one remove the folder icon in jstree whilst using the checkbox plugin?

$('#div').jstree({
        "ui": {
            "theme_name": "checkbox"
        },
        "theme" : { "icons": false },
        "json_data": {
            "ajax": {
                "type": "POST",
                "url": "@Url.Action("Tree")"
            }
        },
        "plugins": ["json_data", "checkbox", "ui", "themes"]
    });

This all works fine but it displays the checkbox icon as well as the folder icon.

Answer

Dark Light picture Dark Light · Jan 21, 2014

in the latest jstree version i.e. jstree-3, the themes option goes into the "core" object

"core": {
        "themes":{
            "icons":false
        }
    }