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

Ability to select all

Open Abhi3038 opened this issue 7 years ago • 2 comments

How can we select all the nodes. Can we have a button say "Select All" which can select all the nodes at the click(and may be a select none button)

Abhi3038 avatar Sep 14 '18 11:09 Abhi3038

The check/uncheck all can be achieved by having a single root level node. You can expand the root by default so that the tree is functionally similar to what you originally had, and checking/unchecking the root will effectively achieve what you are asking.

jakezatecky avatar Sep 14 '18 21:09 jakezatecky

@jakezatecky could u please provide an example?

MohammedSaberMohammed avatar Feb 09 '21 15:02 MohammedSaberMohammed