1

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!

user198003
  • 11,029
  • 28
  • 94
  • 152

1 Answers1

0

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.

Scottingham
  • 906
  • 2
  • 11
  • 26