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

Disabled node option needed to pass in separate array same as checked array

Open rdebraj2021 opened this issue 4 years ago • 1 comments

Please include a clear and concise description of the feature or enhancement you would like to have added to the project.

Need to disable some node values , currently for disable a node we need to pass "disabled"(disabled: true) with node label & value.

We need multiple nodes disabled, so its better if a separate array to disable nodes same as checked and expanded array.

Expected checked,expanded & disabled array :

/* sample checked,expanded & disabled array */

state = { checked: [ "/app/Http/Controllers/WelcomeController.js", "/app/Http/routes.js", "/public/assets/style.css", "/public/index.html", "/.gitignore" ], expanded: ["/app", "/app/Http"], disabled: ["/README.md", "/.gitignore", "/app/Http/routes.js"] };

Please check the code sample-
https://codesandbox.io/s/react-checkbox-tree-example-forked-b9ugv?file=/src/components/Widget.js

rdebraj2021 avatar May 17 '21 13:05 rdebraj2021

I have exactly the same need. can't wait to see this added feature. Great lib, thank you

masciugo avatar Aug 18 '21 08:08 masciugo