Aug 03, 2018, 1:01 PM
How do I set the text of a TreePanel node in JavaScript?
I have added a child node to the TreePanel using appendChild.
I have tried the following but the node text doesn't update until I expand/collpase the parent :
selectedNode.appendChild(
{
text: 'Node 1',leaf: true,iconCls: '#Briefcase'
}
How can I then change this text once its been added?I have tried the following but the node text doesn't update until I expand/collpase the parent :
selectedNode.data.text = 'New Text';
selectedNode.set('title', 'New Text');
selectedNode.set("text", 'New Text');
treePanel.store.update();
Is there another way to force the change?