jakezatecky / react-checkbox-tree

A simple and elegant checkbox tree for React.

Home Page:https://jakezatecky.github.io/react-checkbox-tree/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Checking all childrens by only setting the value off father

HenriqueMunhoz opened this issue · comments

Heya,

There is any way that can happen?

I have this example tree

- [ ] Node1 ( value: node1 )
   -- [ ] Node2 ( value: node2 )
        ---- [ ] Node3 ( value: node3)

So what i want is tell the checked array ['node1'] and then it will check all the children nodes.

I only could do it telling the checked array ['node3'] and then it have checked all fathers but i need to do it in the other way father to children.

Thanks \o/