| Issue 232: | onCheck handler | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Please include this ability in next release: opts.onCheck(node); for calling action on checking node checkbox. Project is great, very good for usage. Thanks!
Oct 12, 2011
Thanks for answering this. Danijel, if this doesn't solve your problem, let me know.
Status:
Done
Oct 13, 2011
@arw this callback you can use only in selectMode 2 (multi-selection) But for my purpose is that not enough. I need selectMode 1 for my purpose. And when you have selectMode 1, onSelect doesn't work when you click on checkbox.
Oct 13, 2011
hmm, onSelect should fire in all select modes, I'll have a look at it.
You could try
onClick(node, event)
instead, and check for
node.getEventTargetType(event) == "checkbox"
Status:
Accepted
Labels: Milestone-Release1.2.1
Oct 14, 2011
onClick(node, event)
node.getEventTargetType(event) == "checkbox"
i alredy use this workaround.
But is better and cleaner solution onCheck callback, you dont't think so?
Thx
Dec 28, 2011
I checked with the select sample
http://wwwendt.de/tech/dynatree/doc/sample-select.html#
(first tree, selectMode=1) and onSelect events seem to work.
Can you please give more details?
Status:
Waiting
Jun 6, 2012
Deferred, so v1.2.1 can be released shortly.
Labels:
-Milestone-Release1.2.1 Milestone-Release1.2.2
Oct 6, 2012
(No comment was entered for this change.)
Labels:
-Milestone-Release1.2.2 Milestone-Release1.2.x
Oct 6, 2013
Closing 'Waiting' issues without timely answer
Status:
Done
May 3, 2014
(No comment was entered for this change.)
Status:
WontFix
Labels: -Milestone-Release1.2.x Milestone-Release1.2.5 |
What you may be looking for is opts.onSelect(flag, node) or ("#tree").dynatree({ […] onSelect: function(flag, node) { ... }, […] });