Questions tagged [angular-dragula]

For questions related to Angular's wrapper for drag and drop library dragula.

angular-dragula 's wrapper for

Sample

var angular = require('angular');
var angularDragula = require('angular-dragula');

var app = angular.module('my-app', [angularDragula(angular)]);

Related Links

30 questions
1
vote
1 answer

Ng-click not working dragula drag-drop elements

Using dragula plugin (Angular 1) link ng-click not working moved (drag and drop to another ul) on li element
  • Item One
  • Item Two
  • Item…
ShibinRagh
  • 6,530
  • 4
  • 35
  • 57
1
vote
1 answer

Draw line when dragging element?

Is it possible to draw line between the container and a draggable element during dragging using 'dragula' lib? When the element is dropped, the line should disappear.
Serhiy
  • 1,893
  • 9
  • 30
  • 48
1
vote
2 answers

Multi element drag and drop

I am working on the drag and drop feature for my client. I've already implemented dragular for drag and drop but there is no provision of multi element drag and drop in dragular or any other library which is being provided for drag and drop. Kindly…
1
vote
0 answers

Get positions of divs after drag and drop in a container using dragula

I am a beginner in angularJS. I am trying to get the changes in position after the drag and drop of the respective divs in the container has been completed. I tried a few code snippets given at their website, but couldn't find out the…
1
vote
0 answers

multiple options or dragging between bags on dragula drag and drop angular 1.*

I need two different bags or containers in the same bag. The left container needs to be a nest-able list, the right container needs to be a sort-able list that can clone objects into the left container. So I need the ability to either drag between…
R T
  • 195
  • 9
1
vote
2 answers

How to set up angular-quickstart with ng2-dragula

I've followed the instructions here: https://github.com/valor-software/ng2-dragula/wiki#5-min-quickstart as well as here: https://www.npmjs.com/package/ng2-dragula Angular-quickstart is working, as per: git clone …
Quaternion
  • 10,380
  • 6
  • 51
  • 102
0
votes
1 answer

Use variable of one component in another component in the same file

I have two components defined in the same file, and am trying to access one variable of a component into another, and got this answer, but the get SomeValue() function is not showing up in the other class when I try to refer to it. Given answer on…
Akash Srivastav
  • 756
  • 5
  • 15
0
votes
1 answer

ng2-dragula - Use the copy function only for a specific target?

How do I copy some thing instead of moving it only when dragging it to a specific target. I have 4 containers, and I want to make the value get copied to a container when something is dragged to it. For all the other containers I just want the…
Akash Srivastav
  • 756
  • 5
  • 15
0
votes
1 answer

Ng2-Dragula: Enable drag at run time

So, I have this following template.
The function cssClass sets the…
Chetan Khilare
  • 285
  • 1
  • 3
  • 14
0
votes
2 answers

Property 'forEach' does not exist on type 'NodeList'

I am using ng2-dragula for Drag and Drop in my Table. this.dragulaService.drop.subscribe(value => { let questions_group = value[3] as HTMLTableRowElement let SectionTwo:Array = []; let QuestionId:Array = []; …
Ruchita Ajmera
  • 413
  • 1
  • 6
  • 17
0
votes
0 answers

Drag and Drop mat-card in mat-grid using ng2-dragula

I have a grid of 6 which is depedent on flyer arrays. Inside that grid, I have cards for my each flyer. I want to change the position of my card from tile to tile. I am using ng2-dragula and have gone through all the stuff. My problem is, When i…
Radiant
  • 360
  • 3
  • 26
0
votes
1 answer

AngularJS-Dragula nested lists

TL;DR; I need to drag in nested lists, and I can't get it to work. I've compiled a quick example over at Plunkr. I have dynamic nested sets with no defined depth, and I need to be able to sort them within their own parent-container only. But since…
Pjetr
  • 1,372
  • 10
  • 20
0
votes
1 answer

Use angular dragula without requirejs ends in failing js tests

I have the same issue as described here: Using Angular Dragula without RequireJS It works if do this: var app = angular.module('app', [ angularDragula(angular) ]);
bokkie
  • 1,477
  • 4
  • 21
  • 40
0
votes
1 answer

Angular2 dragula index file not found

i m install dragula and fix the system.config var map = { 'app': 'dist', // 'dist', '@angular': 'node_modules/@angular', 'rxjs': 'node_modules/rxjs', 'dragula': …
corsaro
  • 731
  • 1
  • 9
  • 24
0
votes
2 answers

Angular Dragula and ng-repeat $index

I have an ng-repeat of rows. I set them up so you can reorder them with drag-and-drop using Angular Dragula. This works fine, but the ng-repeat $index remains the initial value for each item after dragging. See screen captures below before and…
Steve
  • 14,401
  • 35
  • 125
  • 230
1
2