user198003
user198003

Reputation: 11161

Dynatree maximum levels

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

Answers (1)

Scottingham
Scottingham

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

Related Questions