moveItemInArray(this.displayedColumns,event.previousIndex+2,event.currentIndex+2);// +2 because the first 2 (selection + name) columns are not dragable
moveItemInArray(
this.displayedColumns,
event.previousIndex+2,
event.currentIndex+2
);// +2 because the first 2 (selection + name) columns are not dragable
}
}
/** Whether the number of selected elements matches the total number of rows. */
/** Whether the number of selected elements matches the total number of rows. */
isAllSelected() {
isAllSelected() {
constnumSelected=this.selection.selected.length;
constnumSelected=this.selection.selected.length;
constnumRows=this.bikes.length;
constnumRows=this.bikes.data.length;
returnnumSelected===numRows;
returnnumSelected===numRows;
}
}
/** Selects all rows if they are not all selected; otherwise clear selection. */
/** Selects all rows if they are not all selected; otherwise clear selection. */