added dropdown for keychain

main
alexanderroese 2024-08-14 09:38:50 +02:00
parent a99e3402c0
commit ba83b38ec1
1 changed files with 4 additions and 2 deletions

View File

@ -462,7 +462,8 @@
"text1": "Paula", "text1": "Paula",
"font": "LT Beverage", "font": "LT Beverage",
"surface_finish": "matte", "surface_finish": "matte",
"color": SHX_getFilamentById("10") "color": SHX_getFilamentById("10"),
"keychain": "Keiner"
}, },
"17200": { "17200": {
"text1": "Marie", "text1": "Marie",
@ -708,6 +709,7 @@
function SHX_IFC_genDropdownSelect(inputID, labelText, inputName, inputVal, options, section_id) { function SHX_IFC_genDropdownSelect(inputID, labelText, inputName, inputVal, options, section_id) {
let isInputShxFont = inputID === "shx-font" let isInputShxFont = inputID === "shx-font"
let isInputShxKeychain = inputID === "shx-keychain"
let html = ` let html = `
<label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label> <label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label>
@ -905,7 +907,7 @@
html += SHX_IFC_genTextInput('shx-text1', 'Text', 'Text', SHX_IFC_getCurrentValue(id, 'text1'), section_id); html += SHX_IFC_genTextInput('shx-text1', 'Text', 'Text', SHX_IFC_getCurrentValue(id, 'text1'), section_id);
html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', SHX_IFC_getCurrentValue(id,'font'), ['LT Beverage', "Rose"], section_id); html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'Schriftart', SHX_IFC_getCurrentValue(id,'font'), ['LT Beverage', "Rose"], section_id);
html += SHX_IFC_genColorSelect('shx-color', 'Farbe', 'Farbe', SHX_IFC_getCurrentValue(id, 'color'), [], section_id); html += SHX_IFC_genColorSelect('shx-color', 'Farbe', 'Farbe', SHX_IFC_getCurrentValue(id, 'color'), [], section_id);
html += SHX_IFC_genColorSelect('shx-keychain', 'Schlüsselanhänger', 'Schlüsselanhänger', SHX_IFC_getCurrentValue(id, 'keychain'), ["Keiner", "Mit Schlüsselanhänger links"], section_id); html += SHX_IFC_genDropdownSelect('shx-keychain', 'Schlüsselanhänger', 'Schlüsselanhänger', SHX_IFC_getCurrentValue(id, 'keychain'), ["Keiner", "Mit Schlüsselanhänger links"], section_id);
return html; return html;
} }