isExpandable
tells you if a dijit.Tree
has children, but what tells you if this tree is open (ex开发者_运维百科panded) or closed?
If you get a reference to the tree node, you can simply ask
if(node.isExpanded == true)
{
//your code here
}
isExpandable
tells you if a dijit.Tree
has children, but what tells you if this tree is open (ex开发者_运维百科panded) or closed?
If you get a reference to the tree node, you can simply ask
if(node.isExpanded == true)
{
//your code here
}
精彩评论