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

Function getValue

src/Tree/Tree.js:62–81  ·  view source on GitHub ↗
(sep)

Source from the content-addressed store, hash-verified

60 }
61
62 getValue (sep) {
63 let list = [],
64 values = [],
65 greedy = this.props.greedy;
66 forEach(this.refs, function (ref) {
67 ref.getChecked(list, greedy);
68 });
69
70 list.forEach(function (d) {
71 values.push(d.$value);
72 });
73
74 if (sep === undefined) {
75 sep = this.props.sep;
76 }
77 if (sep) {
78 values = values.join(this.props.sep);
79 }
80 return values;
81 }
82
83 setValue (value) {
84 value = this.formatValue(value);

Callers

nothing calls this directly

Calls 2

forEachFunction · 0.90
getCheckedMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…