shx-3d-render
parent
131b3b5cf8
commit
8396631142
|
@ -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>
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in New Issue