shx-3d-render
parent
261224ea62
commit
cf652efc1c
|
@ -41,7 +41,7 @@
|
|||
|
||||
let globalInputFormsObjValues = {
|
||||
"test1": {
|
||||
"custom-text-1": "test"
|
||||
"shx-text1": "test"
|
||||
},
|
||||
"test2": {
|
||||
"text1": "test1",
|
||||
|
@ -72,7 +72,7 @@
|
|||
"renderHTML": () => {
|
||||
let html = defaultStyle;
|
||||
|
||||
html += SHX_IFC_genTextInput('custom-text-1', 'Custom Text 1', 'Custom Text 1', globalInputFormsObjValues['test1']['text1']);
|
||||
html += SHX_IFC_genTextInput('shx-text1', 'Custom Text 1', 'Custom Text 1', globalInputFormsObjValues['test1']['shx-text1']);
|
||||
html += SHX_IFC_genRenderButton();
|
||||
|
||||
return html;
|
||||
|
@ -158,7 +158,7 @@
|
|||
if(key === this.currentVariant) {
|
||||
let inputs = this.content.querySelectorAll('input');
|
||||
for(let i = 0; i < inputs.length; i++) {
|
||||
let name = inputs[i].name.replace('properties[', '').replace(']', '');
|
||||
let name = inputs[i].id.replace('shx-', '');
|
||||
globalInputFormsObjValues[key][name] = inputs[i].value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue