What is the current behavior?
I have 2 lists.. one is Names and other one Target list. Name can be dragged from Names list and dropped in Target list. I want to sort the names in Target list , also i want the name 'john' in the first position always. Is there an alternative or have I done it incorrectly ?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar.
I have referred from http://embed.plnkr.co/JbG8Si but the multi-sortable drop down isnt working for me when i implement it in my code! Thanks in advance.
Please tell us about your environment:
Angular version: 5.X.X
Browser: [ Chrome ]
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
`
I'm submitting a ... feature request
Is there any other alternative for this ?
What is the current behavior? I have 2 lists.. one is Names and other one Target list. Name can be dragged from Names list and dropped in Target list. I want to sort the names in Target list , also i want the name 'john' in the first position always. Is there an alternative or have I done it incorrectly ?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar. I have referred from http://embed.plnkr.co/JbG8Si but the multi-sortable drop down isnt working for me when i implement it in my code! Thanks in advance.
Please tell us about your environment:
Angular version: 5.X.X
Browser: [ Chrome ]
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc) `
Simple sortable With Drop into recycle bin
addTo($event: any) {
if ($event.dragData.iscarousel == 1){ this.listTarget.unshift($event.dragData); } else { this.listTarget.push($event.dragData); } console.log($event.dragData); } listTarget: List[] = []; } export interface List {
id: number, name: string, iscarousel: boolean }`
Need the same feature @akserg , @vaishnavi-baliga can I know how did you resolve this ?
I need this feature too. Please inform us how can we resolve this.
@ikismail @argygkou refer this https://github.com/akserg/ng2-dnd/issues/249 my solution for this issue.
here is my solution, support sorting in droppable list
online demo:http://blog.giscafer.com/ngx-dnd-demo/#/target-sortable
source code: https://github.com/giscafer/ngx-dnd-demo
Hope can help you