javascript - dojo tree event on root nodes -
**i'm building dojo tree using following code: 
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
Post a Comment