Open new teb with right click except of icon click
This commit is contained in:
@@ -35,17 +35,8 @@
|
||||
<td mat-cell *matCellDef="let element">{{LayerType[element.type]}}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="opt">
|
||||
<th mat-header-cell *matHeaderCellDef> </th>
|
||||
<td mat-cell *matCellDef="let element">
|
||||
<button mat-icon-button (click)="$event.stopPropagation(); openInNewTab(element)">
|
||||
<mat-icon>add_to_home_screen</mat-icon>
|
||||
</button>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns, sticky: false"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;" [routerLink]="['Detail/', row.id]"
|
||||
style="cursor: pointer"></tr>
|
||||
style="cursor: pointer" (contextmenu)="openInNewTab(row)"></tr>
|
||||
</table>
|
||||
<div (diunabiScrollEnd)="loadMore()"></div>
|
||||
@@ -26,7 +26,7 @@ import { Subject, debounceTime, distinctUntilChanged } from 'rxjs';
|
||||
MatChipsModule, MatIconModule, NgFor, ScrollEndDirective, KeyValuePipe]
|
||||
})
|
||||
export class LayersListComponent implements OnInit {
|
||||
displayedColumns = ['number', 'name', 'type', 'opt'];
|
||||
displayedColumns = ['number', 'name', 'type'];
|
||||
dataSource!: Layer[];
|
||||
LayerType = LayerType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user