MCPcopy Create free account
hub / github.com/devforth/painterro / controlObjToString

Method controlObjToString

js/inserter.js:294–301  ·  view source on GitHub ↗
(o, btnClassName = '')

Source from the content-addressed store, hash-verified

292 }
293
294 static controlObjToString(o, btnClassName = '') {
295 const tempObj = o;
296 tempObj.id = genId();
297 return `<button type="button" id="${o.id}" class="ptro-selector-btn ptro-color-control ${btnClassName}">` +
298 `<div><i class="ptro-icon ptro-icon-paste_${o.internalName}"></i></div>` +
299 `<div>${tr(`pasteOptions.${o.internalName}`)}</div>` +
300 '</button>';
301 }
302
303 html() {
304 const bcklOptions = this.main.params.backplateImgUrl;

Callers 1

htmlMethod · 0.80

Calls 2

genIdFunction · 0.90
trFunction · 0.90

Tested by

no test coverage detected