Formatting, comments, use injected download functionality

This commit is contained in:
Pieter Vander Vennet 2021-12-13 20:51:44 +01:00
parent 7b774b2aa3
commit dc5c3461f8
7 changed files with 47 additions and 98 deletions

View file

@ -54,9 +54,9 @@ export class DropDown<T> extends InputElement<T> {
const select = document.createElement("select")
select.classList.add(...(options.select_class.split(" ") ?? []))
for (let i = 0; i < values.length; i++) {
const option = document.createElement("option")
option.value = "" + i
console.log(values[i].shown)
option.appendChild(Translations.W(values[i].shown).ConstructElement())
select.appendChild(option)
}