Questions tagged [dragula]

a JavaScript library for convenient drag and drop support

Dragula is a JavaScript library that facilitates usage of drag and drop through an “easiest possible” API. It’s hosted on GitHub where it also provides a demo page. Dragula can easily installed using : npm install dragula --save

See usage details for a comprehensive API overview.

202 questions
0
votes
2 answers

Error in directive dragula update hook: "TypeError: Cannot read property 'drake' of undefined"

I used vue-dragula in my project for the drag & drop list requirement. It's worked perfect. But I have the below error at that hold element remove time. Error in directive dragula update hook: "TypeError: Cannot read property 'drake' of…
Jai Kumaresh
  • 715
  • 1
  • 7
  • 33
0
votes
1 answer

Ng2 Dragula reorder same array multiple drop zones

I've searched high and low and have come up dry. Angular version 9.1.11, ng2-dragula version 2.1.1. I want to bind the same array to multiple drop zones, and on drop the array should simply be re-ordered correctly. This works beautifully with…
Austin
  • 115
  • 1
  • 10
0
votes
2 answers

How can I make all three containers draggable in Dragula, if all three are rendered using a method? Using React js and Dragula (not react-dragula)

React beginner here. So basically, I want to have 3 columns with elements that can be dragged to reorder inside the same column or move to a different column. The code for it is separated into 2 classes to separate what relevant element should be in…
Vidit Gautam
  • 97
  • 1
  • 5
0
votes
1 answer

How to force Mithril to redraw without diffing? (integrating dragula in Mithril)

I am translating a JQuery-based app to Mithril. That app uses Dragula to allow drag/drop to reorder lists. Dragula reorders the li elements in the DOM. When the Drop event is fired, I sync the model and call m.redraw(). However, the UI ends up in…
rupps
  • 9,712
  • 4
  • 55
  • 95
0
votes
2 answers

How do you reset moved objects with Dragula?

I've started working with Dragula and I'm having elements be moved from one box to another. However, I want to be able to click a button and have the Dragula elements be placed back where they were before, basically resetting it. I've looked around…
0
votes
1 answer

Vue dragula - drop event listener called multiple times

I'm trying to build a web app with draggable elements using Vue.js and the vue-dragula framework. In the app, I'm trying to have multiple containers with elements that can be dragged across the containers. In App.vue