Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
Source by github.com #
 
PREVIOUS NEXT
Tagged: #dragula #filter
ADD COMMENT
Topic
Name
9+3 =