occo@163.com
24 Jun 2009, 5:20 PM
var tree = new Ext.tree.TreePanel({
el: 'tree-div',
useArrows: true,
autoScroll: true,
animate: true,
enableDD: true,
containerScroll: true,
border: false,
dataUrl: 'get-nodes.php',
root: {
nodeType: 'async',
text: 'Ext JS',
draggable: false,
id: 'source',
children: [{
text: "One",
leaf: true
}, {
text: "Two",
leaf: false
}]
}
});
tree.render();
tree.getRootNode().expand();
the code above has a AsyncTreeNode class instance, it has a children attribute,
but in help docs AsyncTreeNode class has no children attribute,why?:-/
el: 'tree-div',
useArrows: true,
autoScroll: true,
animate: true,
enableDD: true,
containerScroll: true,
border: false,
dataUrl: 'get-nodes.php',
root: {
nodeType: 'async',
text: 'Ext JS',
draggable: false,
id: 'source',
children: [{
text: "One",
leaf: true
}, {
text: "Two",
leaf: false
}]
}
});
tree.render();
tree.getRootNode().expand();
the code above has a AsyncTreeNode class instance, it has a children attribute,
but in help docs AsyncTreeNode class has no children attribute,why?:-/