Array(JSON)treeNode.children

Overview[ depends on jquery.ztree.core js ]

The data collections of node's child nodes.

1. If change the 'children' to other attribute, please set the 'setting.data.key.children' attribute.

2. If you set to use dynamic tree, when a node is expanded which 'isParent' attribute is true and which has no child nodes, zTree will use ajax to get its child nodes.

Default: undefined

Array(JSON) Format

Standard JSON Data object

Examples of treeNode

1. Use the standard JSON data object.

var nodes = [
{ "id":1, "name":"test1",
	children: [
	{ "id":3, "name":"test3"},
	{ "id":4, "name":"test4"},
	{ "id":5, "name":"test5"}
	]
},
{ "id":2, "name":"test2"  }
]

2. Get the first root node's child nodes

var treeObj = $.fn.zTree.getZTreeObj("tree");
var nodes = treeObj.getNodes()[0].children;