-
Notifications
You must be signed in to change notification settings - Fork 568
Reorder item inside a list #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Unfortunately, It's not possible as of now, you have to use ui-sortable instead. I'm in the process to implement sorting in angular-dragdrop but do not want to give any false commitment. |
Hi, I don't know if I understood your issue very well but I think I had the same. The idea was to get the offset of my draggable and compare it to the other element list offset. for(var i = 0; i <= dropModelValue.length; i++) "elemToInsert" is the index of the new the element you just dropped. Hope this could help |
oh thank you very much! |
Notice that it's not an optimal solution because it's not very accurate since I just get the top position. Did you try it ? |
@Psabot how can we retrieve elemToInsert i.e. index of new element? I am kinda confused here. I also badly want to implement sorting :( edit : arghhh got it... I can not deal with ID selector won't be an efficient solution for me ;-( |
@rahulrulez You just need only one id on the container. Why can't you deal with it ? |
@codef0rmer : is there any news about insertInline option? |
Hello.
Sorry if is not the right place to ask.
How is possible to reorder items inside a list using angular-dragdrop?
Here is my stack overflow question:
http://stackoverflow.com/questions/27799766/angular-dragdrop-how-to-reorder-items
The text was updated successfully, but these errors were encountered: