erstelle Kategorien im frontend haben jetzt wie die Kategorien in list.html eine ul für die items

This commit is contained in:
Technoir committed 2026-10-06 17:50:35 +02:00
1 parent 4f62c7f93e
commit 4c67f191a2
1 file changed
+2
@@ -15,6 +15,7 @@ export class ShoppingCategory {
const span = document.createElement("span");
const deleteCategoryButton = document.createElement("button");
const deleteAllItemsCheckbox = document.createElement("input");
const innerUl = document.createElement("ul");
li.id = this.categoryID;
li.classList.add("category");
@@ -29,6 +30,7 @@ export class ShoppingCategory {
li.appendChild(span);
li.appendChild(deleteCategoryButton);
li.appendChild(deleteAllItemsCheckbox);
li.appendChild(innerUl);
return li;
}