jQuery Dynatree Plugin - how to disable a node?

sarsnake picture sarsnake · Jan 15, 2010 · Viewed 8.6k times · Source

http://wwwendt.de/tech/dynatree/index.html

Is it possible to disable individual nodes? If so, how?

Answer

mar10 picture mar10 · Jan 16, 2010

Currently there's only the 'unselectable' node attribute. A workaround could be to let the onQueryActivate callback return false. And maybe add a custom class using the 'addClass' node option, to change the visual appearance.

http://code.google.com/p/dynatree/issues/detail?id=68