New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select parent when child selected #21
Comments
Great question. The You can determine the parent of checked/unchecked node by finding it in the full tree. |
So the correct one would implement on the I'll try later with Thank you |
Perfect thanks.
…On Wed, Feb 27, 2019, 7:52 AM Renan Teixeira ***@***.***> wrote:
So the correct one would implement on the onUpdateCb callback, I was
trying on the onCheckToggleCb callback ...
I'll try later with onUpdateCb and report here
Thank you
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACfoLNG88d0fRdjeBfcywUytHBJW5_0Tks5vRo20gaJpZM4bSKzy>
.
|
Hi @azizali , how's it going? Sorry for the delay, I was able to do this through a combination of 'onCheckToggleCb' and 'onUpdateCb' I got the last selected node in 'onCheckToggleCb' and found the parent by reference in 'onUpdateCb' and checked this Thanks for the help, and sorry my bad english |
Great. Awesome.
…On Fri, Mar 1, 2019, 5:37 AM Renan Teixeira ***@***.***> wrote:
Hi @azizali <https://github.com/azizali> , how's it going?
Sorry for the delay, I was able to do this through a combination of
'onCheckToggleCb' and 'onUpdateCb'
I got the last selected node in 'onCheckToggleCb' and found the parent by
reference in 'onUpdateCb' and checked this
Thanks for the help, and sorry my bad english
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACfoLNyKa6BNO3Q7UgV9tJPOlLd4G1wSks5vSR7xgaJpZM4bSKzy>
.
|
I would interest in how you implement your solution, specially how to manage to pass the reference of the box that was checked, to the onUpdateCb. Thanks in advance |
I strongly recommend using react-checkbox-tree if you need this functionality (which is a must for a tree-view component). I hardly managed to check the upper parents but even in that case component doesn't half-check the parent and couldn't make it do that since it's not created considering this functionality. |
I'm trying to select a parent when one of your children is selected, can I do that?
The text was updated successfully, but these errors were encountered: