easyui tree 去掉默认图标,使用fontawesome

tree 加载后运行:

   $(".tree-icon,.tree-file").removeClass("tree-icon tree-file");
    $(".tree-icon,.tree-folder").removeClass("tree-icon tree-folder tree-folder-open tree-folder-closed");

node展开后运行:

 $('.tree-title').prev().removeClass("tree-folder-open");
 $('.tree-checkbox,.tree-checkbox0').prev().removeClass("tree-folder-open");

数据源的iconCls属性中的值设置成fontawesome值,如:”fa fa-gear”,就可以使用了。

你可能感兴趣的:(jquery,easyui)