Eugene P.
Eugene P.

Reputation: 1813

CdkDragAndDrop how to disable dropping – Angular

Two element lists. From the first list a user can drag elements to the second one, or he can move elements within the second list. He cannot drag & drop element to the first list.

How can I do it?

Upvotes: 0

Views: 861

Answers (1)

Shruti Bhagwate
Shruti Bhagwate

Reputation: 109

You can use angular 'cdkDropList' for drag and drop. 'cdkDropListEnterPredicate' will disable dropping inside the same list. Please refer example in this link

Upvotes: 1

Related Questions