javascriptangularjsangular-filtersangular-dragdrop

use filter filter in angular dragdrop


here is a plunkr to illustrate my issue.

https://plnkr.co/edit/SdRii7l7Wsf9rbuM6byc?p=preview

when applying a filter filter to my angular collection (filling in the search box) then dragging the result to one of the wells. the filter is not applied. I attempted using the filter examples provided in the dragdrop documentation but it does not appear to be working.

   <div class="well"
               ng-repeat = "org in orgs"
                data-drop="true"
                ng-model="org.list"

               jqyoui-droppable="{multiple:true, applyFilter: 'filterIt'}">

Solution

  • A few things I noticed:

    Here is a modified Plunkr that seems to apply the search filter correctly when the item is dropped: https://plnkr.co/edit/LCfDpGwptqODMEsi30UW?p=preview.