Reputation: 11161
Is it possible to define maximum level of nodes in Dynatree? Or, how to define maximum depth of nodes in a tree?
Tnx in advance!
Upvotes: 1
Views: 598
Reputation: 946
There isn't a way to define that at the outset.
You could use node.getLevel()
to check a predetermined maximum level. If you reach the maximum value do not allow new subnodes to be created off that node.
Upvotes: 0