Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha Premium Member
Ext.list.Tree ignores cls of nodes
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.
-
Thanks for the report. Can you please post a test case which reproduces this issue?
https://fiddle.sencha.com/#home
-
Sencha Premium Member
-
Sencha User
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.
-
Sencha Premium Member
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.
Code:
{
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());
}}