shx-3d-render
parent
808c26c57c
commit
559c4ef0dd
|
@ -105,8 +105,12 @@
|
|||
`;
|
||||
|
||||
for(let i = 0; i < options.length; i++) {
|
||||
html += `<div style="background-color: ${options[i]}; width: 40px; height: 40px; display: inline-block; margin-right: 10px; border-radius: 5px; ${inputVal === options[i] ? 'border: 2px solid #000' : ''}"></div>`;
|
||||
html += `
|
||||
<input type="radio" id="${inputID}-${i}" name="${inputName}" value="${options[i]}" ${inputVal === options[i] ? 'checked' : ''}>
|
||||
<label for="${inputID}-${i}" style="background-color: ${options[i]}; width: 40px; height: 40px; display: inline-block; margin-right: 10px; border-radius: 5px; ${inputVal === options[i] ? 'border: 2px solid #000' : ''}"></label>
|
||||
`;
|
||||
}
|
||||
|
||||
html += `</section></div>`;
|
||||
|
||||
return html;
|
||||
|
|
Loading…
Reference in New Issue