jquery dynatree class methods
Posted
by
Jj Zhang
on Stack Overflow
See other posts from Stack Overflow
or by Jj Zhang
Published on 2011-10-18T17:13:13Z
Indexed on
2011/11/18
9:50 UTC
Read the original article
Hit count: 495
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
© Stack Overflow or respective owner