admin管理员组

文章数量:1357639

I have a reuseable "folder-component", I need to be able to drag that folder-component on another one and trigger a function. Is it possible with material drag & drop cdk? because so far all I can see is moving items between lists.

I have a reuseable "folder-component", I need to be able to drag that folder-component on another one and trigger a function. Is it possible with material drag & drop cdk? because so far all I can see is moving items between lists.

Share Improve this question asked Mar 27 at 16:45 Mohamed SalahMohamed Salah 2981 silver badge8 bronze badges
Add a comment  | 

1 Answer 1

Reset to default -1

https://v7.material.angular.io/cdk/drag-drop/api#CdkDragDrop

Using the CdkDragDrop event, you would be able to identify the container dropped and the container which it was dropped upon.

With this information, you would be able to carry out whichever function you wish, should the re-order occur, you can revert the changes in the list.

本文标签: