PDA

View Full Version : Ext.list.Tree ignores cls of nodes



SpecialAgent
21 Aug 2015, 6:37 AM
The Ext.list.Tree component ingores the cls-Property of nodes for dom rendering.

If I use the same store with Ext.tree.Panel the cls-Property is rendered in the dom.

Gary Schlosberg
21 Aug 2015, 3:56 PM
Thanks for the report. Can you please post a test case which reproduces this issue?
https://fiddle.sencha.com/#home

SpecialAgent
24 Aug 2015, 12:17 AM
https://fiddle.sencha.com/#fiddle/sms

a.premkumar
11 Apr 2016, 6:09 AM
Any update on this bug? I am facing the same issue and I need to fix this ASAP. Anyone stumbled upon any hotfix? Please share.

SpecialAgent
13 Apr 2016, 4:39 AM
I have fixed it by override the getItemConfig function. But I'm not sure if this was all. In the meantime we have dropped this component.



{
xtype: 'treelist',
(...),
getItemConfig: function(node, parent) {
return Ext.apply({
parentItem: parent.isRootListItem ? null : parent,
owner: this,
node: node,
indent: 10,
cls: node.data.cls
}, this.getDefaults());
}}