From 18daded2c25a526f95d6382657cbfd534c590556 Mon Sep 17 00:00:00 2001 From: Tim Aldinger Date: Fri, 9 Oct 2026 22:37:33 +0200 Subject: [PATCH] Element wird entfernt --- src/main/resources/static/js/pages/index/frontend/indexUI.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/static/js/pages/index/frontend/indexUI.js b/src/main/resources/static/js/pages/index/frontend/indexUI.js index 4a924a4..fdd9764 100644 --- a/src/main/resources/static/js/pages/index/frontend/indexUI.js +++ b/src/main/resources/static/js/pages/index/frontend/indexUI.js @@ -6,3 +6,7 @@ export function addList(listAsJSON) { const listElement = ShoppingList.fromJSON(listAsJSON); list.append(listElement.render()); } + +export function deleteList(listElement) { + listElement.remove(); +}