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

Method getValue

src/Upload.js:38–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 getValue () {
39 let values = [],
40 files = this.state.files;
41 const { sep } = this.props;
42 Object.keys(files).forEach((id) => {
43 //if (autoUpload) {
44 values.push(files[id].value);
45 //} else {
46 // values.push(files[id].file.files[0]);
47 //}
48 });
49 if (sep) {
50 values = values.join(sep);
51 }
52 return values;
53 }
54
55 handleChange (value) {
56 const { onChange } = this.props;

Callers 6

handleChangeMethod · 0.95
basic.jsFile · 0.45
basic.jsFile · 0.45
handleChangeFunction · 0.45
react.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected