我想突出显示 Ext.tree.Panel 中的一些节点。
在 Ext3 中,我通过向树节点 ui 对象添加一个类来实现这一点:
// add a class with to highlight the node
myTreeNode.getUI().addClass('highlightclass');
// remove the class to remove the highlighting
myTreeNode.getUI().removeClass('highlightclass');
Ext4 中的等价物是什么?我已经能够通过设置节点模型的 iconCls 字段来更改图标,但我真的希望能够设置一个允许我突出显示整个节点的类。