MCPcopy Create free account
hub / github.com/Lobos/react-ui / toggleAll

Method toggleAll

src/Tree/Item.js:33–38  ·  view source on GitHub ↗
(open)

Source from the content-addressed store, hash-verified

31 }
32
33 toggleAll (open) {
34 this.setState({open});
35 forEach(this.refs, function (ref) {
36 ref.toggleAll(open);
37 });
38 }
39
40 check () {
41 if (this.props.readOnly) {

Callers 1

toggleAllFunction · 0.80

Calls 1

forEachFunction · 0.90

Tested by

no test coverage detected