PDA

View Full Version : NodeInterface - AppendChild and children



glenho
16 Jul 2013, 2:52 PM
Hi

I was just wondering why when you use appendChild the children member is not updated and the newly appended child is not in there?

EDIT
I notice that this also applies to removeChild

EDIT
Ok I may have answered my own question. The children attribute is a config property and is used for loading only? Can someone confirm this is the case?
Thanks
Glen

slemmon
18 Jul 2013, 3:24 PM
The children config should be used to configure a node.
The childNodes property would be what you'd read from to see the existing child nodes of a node:
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.data.NodeInterface-property-childNodes