From 201c493658981a6e5fc622dc451e1b5664a9e04b Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 3 Jun 2020 00:03:54 +0200 Subject: [PATCH] some working drag and drop stuff --- cookbook/templates/meal_plan.html | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/cookbook/templates/meal_plan.html b/cookbook/templates/meal_plan.html index bebe41242..2ccca72c9 100644 --- a/cookbook/templates/meal_plan.html +++ b/cookbook/templates/meal_plan.html @@ -62,7 +62,7 @@

Draggable 1

- +

Draggable 2

- +

Draggable 2

- +
[[element]] @@ -102,7 +102,6 @@
-
@@ -118,7 +117,15 @@ plan_entries: [], meal_types: [], list3: [], - meal_plan: null, + meal_plan: [ + { + name:"Breakfast", + id:1, + items: [ + + ] + } + ], }, mounted: function () { this.getPlanEntries(); @@ -154,6 +161,10 @@ }, log: function (evt) { console.log(evt) + }, + test: function (evt, originalEvent) { + console.log(evt) + console.log(originalEvent) } } });