Reorder mat-table rows with angular material's drag-and-drop

后端 未结 5 1354
天涯浪人
天涯浪人 2020-12-29 08:59

Angular 7 brought the powerful DragDropModule with it: https://material.angular.io/cdk/drag-drop/examples

The documentation deals with rearranging items

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-29 09:32

    Found example https://stackblitz.com/edit/angular-igmugp

    Looks the missing part is

    this.table.renderRows();
    

提交回复
热议问题