react-checkbox-tree icon indicating copy to clipboard operation
react-checkbox-tree copied to clipboard

Support useTopNode option

Open joscmw95 opened this issue 5 years ago • 3 comments

Wrote this because I wanted to do something that looks like GitHub token creator.

It does what was mentioned in #13, particularly the 2nd model:

  1. Record upper-most nodes in checked. Here, we care about top-most checked nodes; the component needs to be intelligent enough to only record nodes that do not have a parent node checked. This is the model you are suggesting.

joscmw95 avatar Mar 22 '19 16:03 joscmw95

What is the status on this? Can it be merged/released?

mkaufman1 avatar Oct 04 '19 14:10 mkaufman1

Any news?

zlobin-oleksii avatar Oct 24 '19 19:10 zlobin-oleksii

The owner of this repository added the PR to the 1.6.0 milestone however no one is actively merging the code. I would advise anyone that wants to use this 'mode' now to use the fork I created. There is no clear documentation on usage but you could just add the useTopNode={true} parameter in the component and see the output.

joscmw95 avatar Oct 28 '19 11:10 joscmw95