react-checkbox-tree
react-checkbox-tree copied to clipboard
outside checkbox to check all the nodes to of checkbox tree.
I want to check all the checkbox with outside checkbox. It is possible now ?? If not will you consider doing that ??
There currently does not exist an option for a checkbox outside of the main tree to toggle all nodes. The best way to allow a user to check/uncheck all nodes would be to have a single root-level node and add its value to the expanded array. That would essentially accomplish the purpose of checking all nodes but it would be within the tree.
I have considered adding a check all/uncheck all option like there is expand all/collapse, but decided against it due to the above solution.
Yeah i do understand that but my structure is different. I have Multiple tabs each tab contains react checkbox tree. and i refer that tab to whole tree.

Plz refer the attach file to see my structure. and ignore what is written on it.
I would not be opposed to adding checkAllNodes and uncheckAllNodes methods to the tree instance that you could invoke using a React ref. However, you would have to create whatever element in the interface to expose this action to the user.
i am trying to add new function to the library. But below Error Occurs: Error: Cannot find module './test/setup.js'.