bgreenhouse
Technical User
Hi Guys
I want to make my tree (FTree component) so that when you open a node, all other open nodes close. I thought it would be fairly simple, set up a nodeExpansionHandler that either
1 - makes a global variable remembering the node that is open and then closing that variable the next time it is invoked. or
2 - cycling through all the nodes and closing all that aren't the one that was opened.
However, I can't find any method or property of a node that lets you close it. I try to use the
method, but that just puts the closed icon beside the node, but doesn't actually collapse the branches.
Any suggestions/links?
Thanks
B
I want to make my tree (FTree component) so that when you open a node, all other open nodes close. I thought it would be fairly simple, set up a nodeExpansionHandler that either
1 - makes a global variable remembering the node that is open and then closing that variable the next time it is invoked. or
2 - cycling through all the nodes and closing all that aren't the one that was opened.
However, I can't find any method or property of a node that lets you close it. I try to use the
Code:
setIsOpen
Any suggestions/links?
Thanks
B