2013-05-13 204 views
17

如何使用複選框插件刪除jstree中的文件夾圖標?使用複選框刪除jstree中的文件夾圖標

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

這一切工作正常,但它顯示覆選框圖標以及文件夾圖標。

回答

9

明白了...應該是「主題」:{「圖標」:假}

51
在最新版本jstree即jstree-3

,主題選項進入「核心」對象

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

對於其他人:如果您使用此https://github.com/tristanm/jstree-rails,則必須通過css隱藏圖標(display:none) – 2014-07-03 18:43:50