shx-3d-render
parent
405818c2da
commit
fc45e382c5
|
@ -192,23 +192,16 @@
|
|||
return `
|
||||
<label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label>
|
||||
<div class="field custom">
|
||||
<input class="field__input" form="product-form-${section_id}" type="text" id="${inputID}" name="properties[${inputName}]" value="${inputVal}">
|
||||
<input class="field__input" form="product-form-${section_id}" type="text" id="${inputID}" name="properties[${inputName}]" value="${inputVal}" onchange="document.querySelector('shx-input-forms').renderView()">
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
function SHX_IFC_genRenderButton() {
|
||||
return `
|
||||
<button class="button shx_ifc_renderButton" onclick="document.querySelector('shx-input-forms').renderView()">Vorschau generieren</button>
|
||||
`;
|
||||
|
||||
}
|
||||
|
||||
function SHX_IFC_genDropdownSelect(inputID, labelText, inputName, inputVal, options, section_id) {
|
||||
let html = `
|
||||
<label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label>
|
||||
<div class="field custom">
|
||||
<select id="${inputID}" form="product-form-${section_id}" name="properties[${inputName}]" class="field__input" style="height: 40px">
|
||||
<select id="${inputID}" form="product-form-${section_id}" name="properties[${inputName}]" class="field__input" style="height: 40px" onchange="document.querySelector('shx-input-forms').renderView()">
|
||||
`;
|
||||
|
||||
for(let i = 0; i < options.length; i++) {
|
||||
|
@ -267,7 +260,6 @@
|
|||
// elementID, labeltext, shopping cart name, initial value, section_id
|
||||
html += SHX_IFC_genTextInput('shx-text1', 'Custom Text 1', 'Text', globalInputFormsObjValues['test1']['text1'], section_id);
|
||||
html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', globalInputFormsObjValues['test1']['font'], ['LT Beverage', "Rose", 'Arial'], section_id);
|
||||
html += SHX_IFC_genRenderButton();
|
||||
|
||||
return html;
|
||||
}
|
||||
|
@ -277,7 +269,6 @@
|
|||
|
||||
html += SHX_IFC_genTextInput('custom-text-1', 'Custom Text 1', 'Custom Text 1', globalInputFormsObjValues['test2']['text1'], section_id);
|
||||
html += SHX_IFC_genTextInput('custom-text-2', 'Custom Text 2', 'Custom Text 2', globalInputFormsObjValues['test2']['text2'], section_id);
|
||||
html += SHX_IFC_genRenderButton();
|
||||
|
||||
return html;
|
||||
}
|
||||
|
@ -289,7 +280,6 @@
|
|||
html += SHX_IFC_genColorSelect('shx-color2', 'Farbe2', 'Farbe2', globalInputFormsObjValues['TextOne']['color'], ['10', '11'], section_id);
|
||||
html += SHX_IFC_genTextInput('shx-text1', 'Custom Text 1', 'Text', globalInputFormsObjValues['TextOne']['text1'], section_id);
|
||||
html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', globalInputFormsObjValues['TextOne']['font'], ['LT Beverage', "Rose", 'Arial'], section_id);
|
||||
html += SHX_IFC_genRenderButton();
|
||||
|
||||
return html;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue