jquery dynatree class methods
- by Jj Zhang
I'm a new user of dynatree plugin. When I read the documentation, I found the list of tree and node class member functions, such as tree.getRoot(), node.countChildren(). However, when I tried to use them, it complained that no such methods were found.
Here is a sample code I am testing with:
var tree = ("#test").dynatree(treeData);
var rootNode = tree.getRoot(); //not working
var rootNode2 = ("#test").dynatree("getRoot"); //this works
var numChildren = rootNode2.countChildren(); //not working
Help please. Thanks.
-JJ