How to disable sorting element under cdkDropListGroup in angular CDK?

415 Views Asked by At

I was trying to implementing draging and dropping in both direction using angular CDK and Grid Layout. So i am keeping the elements under cdkDropListGroup to connect the all cdkDropList. Now i want to disable sorting among the elements. I tried using cdkDropListSortingDisabled but it's not working. Is their any way to do it?

<div cdkDropListGroup class="grid-layout-styles example-list">
    <div [ngStyle]="getStyle(item)"  cdkDropList cdkDropListSortingDisabled
         *ngFor="let item of items" [id]="item.id">
         <div class="example-box" cdkDrag>{{item.title}}</div>
    </div>
</div>
0

There are 0 best solutions below