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

Enable the check only at last level parent node and child nodes

manjunathangv opened this issue · comments

How should I include a check only at last level parent node and its child node. Checkbox should not be at all nodes.

Something like this.

image

Please also help, if its already supported.

You can achieve this by setting showCheckbox: false to any non-final parent nodes. Note that you would have to recursively iterate through the nodes object yourself to set this property, as the feature you are requesting is not natively supported.

Thanks for your reply and suggestion.

It helped to add checkbox only at last level parent using showCheckbox: true or false in each node level.