bachvtuan / html5-sortable-angularjs

A directive for angular support sortable list base on pure html5
http://bachvtuan.github.io/html5-sortable-angularjs/
MIT License
43 stars 13 forks source link

Nested sortables #8

Open luckylooke opened 10 years ago

luckylooke commented 10 years ago

Do you have some quick idea how could be nested sortable achieved?

Use case: Lets have a grid table with rows and columns. Cells inside rows are sortable and also rows inside table are sortable.

Problem: Dropping cell in row fires also drop in table.

My possible solution:

  1. checking if dropped item is from child list or
  2. isolated scopes for sortables or
  3. something else..

:)

bachvtuan commented 10 years ago

One guy asked me about this issue and I also got this issue while I was trying to implement Kanban view and I didn't have much time so I turned on which element need to sortable. I think we can look at jquery ui sortable and show why they can do this. I dunno but I'll try to find the solution when I'm free.

luckylooke commented 9 years ago

These guys seems to have it solved: https://github.com/JimLiu/angular-ui-tree :)

bachvtuan commented 9 years ago

yep. sound like that, let use it in your project. If you want the simple thing, let use this tool. I might use angular-ui in my next project, it's really nice and it seem support touch device.

On Wed, Nov 12, 2014 at 8:41 PM, luckylooke notifications@github.com wrote:

These guys seems to have it solved: https://github.com/JimLiu/angular-ui-tree :)

— Reply to this email directly or view it on GitHub https://github.com/bachvtuan/html5-sortable-angularjs/issues/8#issuecomment-62718737 .

luckylooke commented 9 years ago

yep :) But just for note, this angular-ui-tree is not part of official angular-ui, at least I havent found it on their site http://angular-ui.github.io/

bachvtuan commented 9 years ago

yeah. https://github.com/angular-ui/ui-sortable is a part of http://angular-ui.github.io/ and they use jqueryUI :[

On Wed, Nov 12, 2014 at 9:03 PM, luckylooke notifications@github.com wrote:

yep :) But just for note, this angular-ui-tree is not part of official angular-ui, at least I havent found it on their site http://angular-ui.github.io/

— Reply to this email directly or view it on GitHub https://github.com/bachvtuan/html5-sortable-angularjs/issues/8#issuecomment-62721528 .