MCPcopy Index your code
hub / github.com/MrNothing/AI-Blocks / setPath

Method setPath

Sources/src/Model/UI/Modules/ImageViewer.js:12–20  ·  view source on GitHub ↗
(path, target, name)

Source from the content-addressed store, hash-verified

10 }
11
12 setPath (path, target, name)
13 {
14 if(target==this.props.target && ((this.props.filter+"").trim().indexOf(name)!=-1 || (this.props.filter.trim()+"").length==0))
15 {
16 //console.log("path: "+path+"?reset="+this.state.counter);
17 this.state.counter+=1;
18 document.getElementById(this.props.id).src = path+"?reset="+this.state.counter;
19 }
20 }
21
22 render() {
23 return <img className="previewImage" id={this.props.id} width="100%"/>;

Callers 2

onRunStartMethod · 0.45
constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected