shx-3d-render

main
Jan Umbach 2024-06-13 16:28:48 +02:00
parent 131b3b5cf8
commit 8396631142
1 changed files with 7 additions and 4 deletions

View File

@ -29,11 +29,14 @@
<script type="text/javascript"> <script type="text/javascript">
let globalInputFormsObjValues = {
"test1": {
"text1": "test"
}
};
let globalInputFormsObj = { let globalInputFormsObj = {
"test1": { "test1": {
"value": {
"text1": "test"
},
"renderHTML": () => { "renderHTML": () => {
console.log(this); console.log(this);
return ` return `
@ -41,7 +44,7 @@
<style>.custom.form__label{margin-bottom: 0.6rem}.field.custom{margin-top:0}.custom .field__input{padding-top:0.8rem}</style> <style>.custom.form__label{margin-bottom: 0.6rem}.field.custom{margin-top:0}.custom .field__input{padding-top:0.8rem}</style>
<label class="form__label custom" for="your-label">Dein Text</label> <label class="form__label custom" for="your-label">Dein Text</label>
<div class="field custom"> <div class="field custom">
<input class="field__input" form="{{ 'product-form-' | append: section.id }}" type="text" id="your-label" name="properties[Your label]" value="${this.value.text1}"> <input class="field__input" form="{{ 'product-form-' | append: section.id }}" type="text" id="your-label" name="properties[Your label]" value="${globalInputFormsObjValues.test1.text1}">
</div> </div>
</div> </div>
`; `;