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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -