ember-drag-sort

Identifying targetList in ember-drag-sort

亡梦爱人 提交于 2019-12-12 04:42:56
问题 I am currently trying to implement an ember-drag-sort nested list into my Ember.js app. Is there a way to determine in the dragEnd action which "sub-list" the item has been dropped into? (e.g. a class name, id etc) In my scenario, I am sorting ember data records that can belong to each other (i.e. a nested, 'tree' structure). When I drag one nested record "into" another (making the dragged record a child of the second record), I need to update the parent attribute in ember-data. My question