Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove folder icon in jstree while using checkbox [closed]

Tags:

jstree

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.

like image 814
everreadyeddy Avatar asked May 13 '13 16:05

everreadyeddy


2 Answers

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

"core": {
        "themes":{
            "icons":false
        }
    }
like image 179
Dark Light Avatar answered Oct 14 '22 00:10

Dark Light


Got it... Should have been "themes" : { "icons": false }

like image 10
everreadyeddy Avatar answered Oct 14 '22 00:10

everreadyeddy