javascript - dojo tree event on root nodes -


**i'm building dojo tree using following code: enter image description here

the tree displayed expected. problem have onclick event fired on leaf nodes. when click on root level node(i have several root level) open showing child nodes.

how can add "extra" onclick functionality root nodes?

you've got openonclick set true tree. think api docs answer possibly could.

http://dojotoolkit.org/api/dijit/tree/openonclick

that said, looks you'd able connect _onclick instead , whatever want (that's method responsible calling onclick when openonclick false, anyway). or, if wanted feel little less guilty accessing private members, dojo.declare subclass of dijit.tree, extending _onclick fire function define public.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -