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
1 answer

Drag and drop players in a results table inside form to send to PHP (using DragulaJS)

I'm developing the front-end of an app to track tournaments. In one page, the user needs to update the tournament result by dragging a player from a list on the left inside the final results table on the right, that I'll send to a PHP backend for…
Hugo Carlos
  • 401
  • 3
  • 22
0
votes
1 answer

Error: require is not a function while loading external module in Angular 2

ng2-dragula seems cool but I have some hard time setting it up for my angular 2 project. I use system.js as a module preloader and its configuration is: System.config({ packages: { app: { format: 'register', …
Brozorec
  • 1,163
  • 9
  • 15
0
votes
1 answer

How to push the content of a container into an array using Meteor-Dragula?

I am using Meteor-Dragula. Lets says I drag a container that has the String hello into the #right DOM element. How do I access that string? Say, pushing it into a String array. Maybe I'm on the right track with something like this? x =…
ttt
  • 69
  • 2
  • 8
0
votes
2 answers

Changing model values when dragging using angular dragular

I am working on sample projects using dragula as well as it's successor dragular. I have a question regarding the usage of this. I implemented drag and drop with this project in angular. My question is :- I am using a list of objects as my model,…
Roshan FIS
  • 11
  • 3
0
votes
1 answer

element with dragula directive not draggable in angular

I have a div
Div1
In controller, the event is triggered but element is not dragging. $scope .$on('bag-one.drag', function (e, el) { console.log("called"); }) How do I fix this?
sim kaur
  • 163
  • 2
  • 14
0
votes
2 answers

How to self-submit a web2py-component at change-event

I load two different components (A,B), where i can drag and drop elements from A to B. Is it possible to trigger a "self-submit" on component B and pass arguments when the drag-target container is changed? Thanks in advance. Edit 1: The components…
Rockbot
  • 935
  • 1
  • 6
  • 24
-3
votes
1 answer

Jquery reorder div in container

I need to sort a set of 3 divs on a container in this way. div class A div class A div class B div class A div class A div class B every 3rd div must be class B, how can i do this and then push te new order to the container ? Thanks,
Aliber
  • 9
  • 2
1 2 3
13
14