开发者

Is there a way to know if a dijit.Tree node is open or closed?

开发者 https://www.devze.com 2023-03-28 02:04 出处:网络
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

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 
}
0

精彩评论

暂无评论...
验证码 换一张
取 消