30

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.

everreadyeddy
  • 738
  • 1
  • 8
  • 18

2 Answers2

80

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

"core": {
        "themes":{
            "icons":false
        }
    }
Dark Light
  • 1,210
  • 11
  • 19
  • For other people : If you use this https://github.com/tristanm/jstree-rails, you must hide icons via css (display: none) – Jeremie Ges Jul 03 '14 at 18:43
11

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

everreadyeddy
  • 738
  • 1
  • 8
  • 18