main
Jan Umbach 2024-07-14 12:59:42 +02:00
parent bdb01827dd
commit 88db4054fd
1 changed files with 13 additions and 2 deletions

View File

@ -440,7 +440,18 @@
`;
for(let i = 0; i < options.length; i++) {
html += `<option value="${options[i]}" ${inputVal === options[i] ? 'selected' : ''}>${options[i]}</option>`;
let optionDisplayName = "";
let optionValue = "";
if(Array.isArray(options[i])) {
optionValue = options[i][0];
optionDisplayName = options[i][1];
} else {
optionValue = options[i];
optionDisplayName = options[i];
}
html += `<option value="${optionValue}" ${inputVal === optionValue ? 'selected' : ''}>${optionDisplayName}</option>`;
}
html += `</select></div>`;
@ -632,7 +643,7 @@
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", "Arial"], section_id);
html += SHX_IFC_genDropdownSelect('shx-font-size', 'Schriftgröße', 'Schriftgröße', SHX_IFC_getCurrentValue(id, 'font_size'), ['Klein', "Normal", "Groß"], section_id);
html += SHX_IFC_genDropdownSelect('shx-font-size', 'Schriftgröße', 'Schriftgröße', SHX_IFC_getCurrentValue(id, 'font_size'), [['small','Klein'], ["normal","Normal"], ["big","Groß"]], section_id);
html += SHX_IFC_genColorSelect('shx-color1', 'Textfarbe', 'Textfarbe', SHX_IFC_getCurrentValue(id, 'color1'), [], section_id);
html += SHX_IFC_genColorSelect('shx-color2', 'Zwischenfarbe', 'Zwischenfarbe', SHX_IFC_getCurrentValue(id, 'color2'), [], section_id);
html += SHX_IFC_genColorSelect('shx-color3', 'Hintergrundfarbe', 'Hintergrundfarbe', SHX_IFC_getCurrentValue(id, 'color3'), [], section_id);