pjekel / cbtree

The Dijit Tree with Multi State Checkboxes, project code 'cbtree' , is a highly configurable dojo/dijit tree with support for multi-state checkboxes or third party widgets capable of presenting a so-called 'checked' state.
Other
75 stars 34 forks source link

How to prevent onClick function calls if checkbox was clicked? #41

Closed drnextgis closed 10 years ago

drnextgis commented 10 years ago

I need to call onCheckBoxClick function if checkbox was clicked and doesn't need to call onClick function in this case. onClick function should be invoked only if tree node was clicked (outside the checkbox area). How I can implement such behavior?

pjekel commented 10 years ago

Set the cbtree property clickEventCheckBox to false in which case clicking a checkbox will only call onCheckBoxClick. The default is true, which generates both the onClick and onCheckBoxClick events.

https://github.com/pjekel/cbtree/wiki/CheckBox-Tree-API#clickeventcheckbox

drnextgis commented 10 years ago

Thanks!