[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/cdk/drag-drop/CdkDragSortEvent [Back]  [Original]

CdkDragSortEvent Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/cdk/drag-drop

CdkDragSortEvent

interface

Event emitted when the user swaps the position of two drag items.

On this page

    arrow_upward_alt Back to the top

    API

        
          interface CdkDragSortEvent<T = any, I = T> {  previousIndex: number;  currentIndex: number;  container: CdkDropList<T>;  item: CdkDrag<I>;}
        
        

    previousIndex

    number

    Index from which the item was sorted previously.

    currentIndex

    number

    Index that the item is currently in.

    container

    CdkDropList<T>

    Container that the item belongs to.

    item

    CdkDrag<I>

    Item that is being sorted.

    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page