MCPcopy Index your code
hub / github.com/devgutt/wdr-render-basic / setValue

Function setValue

bundle/render-basic/src/index.js:80–91  ·  view source on GitHub ↗
(dataManager, el, str)

Source from the content-addressed store, hash-verified

78}
79
80function setValue(dataManager, el, str) {
81 if (!str.includes('{{')) {
82 el.innerHTML = render.textFormatting(str)
83 } else {
84 el.innerHTML = render.textFormatting(str.replace(/{{[^{}]+}}/g, "..."));
85 render.processHyperdata(dataManager, str)
86 .then(s => el.innerHTML = render.textFormatting(s))
87 .catch(error => {
88 console.error(error);
89 });
90 }
91}

Callers 1

renderItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected