Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Ext JS 3.4.0 中有一个 TreePanel。节点通过 JSON 加载。
首先,无论它们是否是叶子,我都需要为所有节点设置相同的图标。所以我不想为有孩子的节点设置“文件夹”图标。这怎么可能?
如果在 JSON 中将所有节点的 .iconCls 属性设置为相同的值,则所有节点都将具有相同的图标
例如:
"iconCls": "icon-file", "expanded": "true", "children": [ { "iconCls": "icon-file", "leaf": "true" }
图标文件是您想要的带有图标的 css,例如:
.icon-file { background-image: url(../images/silk/grid.png) !important; }
I currently have a PCL library that incorporates a factory something like this (names changed to protect the innocent):
public abstract class ThingFactory : ITh