javascript - Setting the icons of a node in TreePanel -
extjs 4:
i've created treepanel. wanted set own icons node used iconcls property every node. working. when expand node, returns normal 'open folder' icon.
var treeobject = { text: "bank of america 1", cls: "enterprise", children: [ { text: "core outputs", cls: "businessunit", iconcls: 'abc' } ], iconcls: 'abc', leaf: "false", expanded: true, type: "enterprise" } treepanel.setrootnode(treeobject);
please suggest avoid problem.
try specify css class prevent override default classes of extjs
.x-grid-tree-node-expanded .x-tree-icon-parent.abc{ background: url(abc) x y no-repat !important; }
Comments
Post a Comment