Reputation: 5238
To my understanding the new Angular 7 provides Drag and Drop features. I searched for the Tree component about the DnD but didn't find much related to trees.
One working expample I've found on Stackblitz. Compared with the drag'ndrop features summarized here the solution looks sober. One better sample is related with ngx-tree-dnd. Nevertheless since I want to stick to Material some q arise:
Upvotes: 5
Views: 7378
Reputation: 5238
After some investigation of the code and fumbling around I figured finally out how to make it better. I post my solution on StackBlitz in case somebody else wanna make additional adjustments.
Major issues I've fixed:
I figured out that the major thing about DnD is that most of the part is plain JS code. Not much spiced up with Angular specifics.
Suggestions about improvements welcome.
Upvotes: 8