The "node" parameter is definitely of the type DynaTreeNode listed in the dynatree documentation. I looked through its properties and all the properties documented for DynaTreeNode are there. It's prototype is empty though; The properties are all directly on the object.
There are a few properties on "node" that are not listed in the documentation. Some of the property names begin with underscores, so they definitely should not be used, but others do not. The list of undocumented properties does include "ul", "li", and "span". Others of note are "childList", "parent" and "tree". Although "tree" is not listed for the DynaTreeNode type, several examples in the documentation show its use.
The "node.span" element is a <span>
that surrounds both the <span>
for the expander icon and the <a>
that contains the title. The "node.li" element is the <li>
that surrounds the <span>
referenced by "node.span". I would have thought "node.ul" would reference the surrounding <ul>
element, but it was always null for me.
Some of the functions on the "node" parameter that are not documented are "append", "collapseSiblings", "fromDict", and "removeChild".
The "event" parameter does appear to be a jQuery event parameter, so event.target
works just fine to get the element that was clicked.