(1)ext 资源图片目录下如
ext\resources\images\default\tree 增加图片s_folder-open.gif和s_folder.gif
(2)修改ext-all.css
/*为小树节点的开闭状态和叶节点状态分别设置样式*/
.x-tree-node-expanded .small-iconCls{background-image: url(../images/default/tree/s_folder-open.gif)}
.x-tree-node-collapsed .small-iconCls{background-image: url(../images/default/tree/s_folder.gif)}
(3)使用这个样式small-iconCls
id : 'nodes',
root : {
text : '列表',
expanded : true,
nodeType : 'async',
//icon : Ext.treeIcon,
//icon: 'folder.gif',
iconCls: 'small-iconCls',
checked : false
}
修改ext tree 图标
最新推荐文章于 2018-06-11 11:34:16 发布