PDA

View Full Version : difference between config 'children' and property 'childNodes' of NodeInterface



sk@ia
1 May 2013, 5:07 AM
I am confused, what's the different between them?

per the source code of 4.2.0, I can not find a single read access of config 'children'

http://docs.sencha.com/extjs/4.2.0/source/NodeInterface.html#Ext-data-NodeInterface

slemmon
3 May 2013, 10:16 AM
Basically the children config is what is used when you're instantiating a node and want to pass child nodes in as child nodes at the time the parent node is created.

childNodes is a property giving you access to a node's existing child nodes after instantiation.