l2lam / CBC-Board-System

Sports (badminton) club session management system to faciliate efficient, fair play for all club members
Apache License 2.0
1 stars 1 forks source link

Drag a game from on-deck to a court #46

Closed l2lam closed 3 weeks ago

l2lam commented 3 weeks ago

This allows a more convient way to assign a game to a court with out several mouse clicks.

l2lam commented 3 weeks ago

Looks like you should be able to just wrap a <draggable> around the choosen hot spot/area in the (available) Court card in the Court component, bind :list to some locally defined array, then handle the @change event to update the court with the game in that list. Similar to: https://github.com/SortableJS/vue.draggable.next/blob/master/example/components/two-lists.vue