select with images

main
alexanderroese 2024-07-17 23:07:47 +02:00
parent 4dd6f6ed8c
commit 24c92f6303
1 changed files with 2 additions and 1 deletions

View File

@ -619,13 +619,14 @@
};
function SHX_IFC_genDropdownSelect(inputID, labelText, inputName, inputVal, options, section_id) {
let isInputShxFont = inputID === "shx-font"
let html = `
<label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label>
<div class="field custom${isInputShxFont && ' shx-custom-enhanced-dropdown-hide-dummy-select'}">
<select id="${inputID}" form="product-form-${section_id}" name="properties[${inputName}]" class="field__input shx-custom-enhanced-dropdown-font-hide-dummy-select" style="height: 40px" onchange="document.querySelector('shx-input-forms').renderView(500)">
`;
let isInputShxFont = inputID === "shx-font"
let customDropdownHtml = "";
if (isInputShxFont) {