erstelle Kategorien im frontend haben jetzt wie die Kategorien in list.html eine ul für die items
This commit is contained in:
1 parent
f2090b684b
commit
ea333235bc
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user