Giter Club home page Giter Club logo

Comments (11)

David-Desmaisons avatar David-Desmaisons commented on July 28, 2024 1

@dann95 , version 2.7.0rc has been published and conatins the change event

from vue.draggable.

David-Desmaisons avatar David-Desmaisons commented on July 28, 2024

Hello @dann95 , for all events send by vue.draggable you should always reffer to Sortable documentation as vue.draggable dispatch the same events.
On the end event, properties from and to relates to the container element, which in your case is the same because you only have one draggable component.
You should watch the update event instead: it has newIndex and oldIndex properties that should provide you the necessary informartion for your custom event.

from vue.draggable.

dann95 avatar dann95 commented on July 28, 2024

Hi @David-Desmaisons did u understan that @EnD event is refering the To and From property as the the origin , it isnt only only one draggable, are 13.

from vue.draggable.

dann95 avatar dann95 commented on July 28, 2024

when i use the move prop, i recive different from and to property on the Event object, but when using @EnD it shows the Origin draggable area as From and To, thats the issue.

from vue.draggable.

dann95 avatar dann95 commented on July 28, 2024

I solved my problem saving destination and origin (to, from) in model of the component, and broadcasting the event with the @EnD..

from vue.draggable.

dann95 avatar dann95 commented on July 28, 2024

but see the screenshots and read description, my english is bad but i think i can explain it better..

from vue.draggable.

David-Desmaisons avatar David-Desmaisons commented on July 28, 2024

@dann95 , I got you now!
First I am glad you found a work-around.
As I was mentioning, vue,draggable is just forwarding the event sent by Sortable, so any issue should be treated with that project.
Regarding vue.draggable, I was thinking that a change event that includes item moved as well as positions and target and source list and component might be helpful.
What do you think?

from vue.draggable.

dann95 avatar dann95 commented on July 28, 2024

yeah, perfect! and about be a fowarding of Sortable, sorry i didnt got it i thinked that was a bug on Vue plugin, well if i can help in something just tell me ❤️

from vue.draggable.

dann95 avatar dann95 commented on July 28, 2024

@David-Desmaisons thanks for the mention, i will check that, im having another issue about nth-child and stacked items =/ , but thanks!

from vue.draggable.

dann95 avatar dann95 commented on July 28, 2024

@David-Desmaisons can you help me with a problems? when im dragging it is moving the UL and not the LI element because of nth-child, have u any idea? =/

from vue.draggable.

dann95 avatar dann95 commented on July 28, 2024

@David-Desmaisons i got it, :options="{element:} , sorry for stupid asks, haha im a phpdeveloper and im trying to make a game with vuedraggable xD

from vue.draggable.

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.