Giter VIP home page Giter VIP logo

Comments (5)

Zomono avatar Zomono commented on September 27, 2024 4

Currently you cannot drag items while the list is filtered. dragula becomes confused with the array index.
In the plunker example you can try to search for "t" and then drag and drop "them" from list. You will notice, that the hidden "Explore" will be moved instead.

from angularjs-dragula.

DanielSchuech avatar DanielSchuech commented on September 27, 2024

Yes and I would say it´s right.

With the change of the filter the ng-repeat will be rerendered. With that code snippet you aren´t changing the outWardCodes Array by drag&drop.

What I think you want is the dragula-model synchronisation

Search by Outward Code: <input type="text" ng-model="search">
<div class='container' dragula='"first-bag"' style="border:1px solid gray;padding:10px;margin:10px"
      dragula-model="many">
    <div ng-repeat="owc in many| filter:search | limitTo:5">{{owc}}</div>
</div>
<div dragula='"first-bag"'dragula-model="many2">
     <div>Make sure to check out the <a href='https://github.com/bevacqua/dragula#readme'>documentation on GitHub!</a></div>
 </div>

Have a look to this plnkr where I ve corrected your snippet: http://plnkr.co/edit/bKNeo9cyKyjY3GpJcIhY?p=preview

Greetings, Daniel

from angularjs-dragula.

ahmadalibaloch avatar ahmadalibaloch commented on September 27, 2024

Again thanks. It works like a charm. 👍

from angularjs-dragula.

jozsi avatar jozsi commented on September 27, 2024

+1

from angularjs-dragula.

vatsalpande avatar vatsalpande commented on September 27, 2024

+1
Any help would be appreciated

from angularjs-dragula.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.