Answers for "dragula filter"

0

dragula filter

// change dagrula.provider.ts:
drake.on('drag', (el: any, source: any) => {
    dragElm = el;
    dragIndex = (el.getAttribute('filter-index')) ? +el.getAttribute('filter-index') : this.domIndexOf(el, source);
});

HTML:
<div [dragula]='dragType' [dragulaModel]='arraylist'>
  <div  *ngFor="let item of arraylist" [attr.filter-index]="arraylist.indexOf(item)">
    <!-- HTML here -->
  </div>
</div>
Posted by: Guest on February-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language