I am trying to implement ngx-virtual-scroll and ng2-dragula together
here is my current Stackblitz UPDATED : Stackblitz
The problem is the following :
<virtual-scroller #scroll2 [id]="myGroupId" [dragula]="myGroupId" [(dragulaModel)]="myList.list2" [items]="myList.list2" class="virtual-scroller">
<div class="virtual-scroller-element" *ngFor="let card of myList.list2; let i = index ">{{myList.list2[i]}}</div>
</virtual-scroller>
for Dragula to work, there must be no HTML in between the group declaration [dragula]="myGroupId"
and the items to drag.
But almost any virtual scroller lib, included this one, create item inside a div. that is auto generate by the package. And therefor, my full div will be drag gable.
I would like to know if you have any tweaks to make it work ?
I haven't used it before but this seems to do the trick (i don't know about the visuals, i guess it can be tuned, but functionally it works). please test: