如何使用条件复选框在材料表中应用排序

问题描述 投票:0回答:1

如何在带有条件复选框的物料表中应用排序:

<ng-container matColumnDef="key">
                            <mat-header-cell *matHeaderCellDef mat-sort-header> Key  </mat-header-cell> 
                            <mat-cell *matCellDef="let element"> {{element.key}}  </mat-cell> 
                        </ng-container>
angular sorting checkbox datatable material
1个回答
0
投票

您可以通过将数据源设置为自定义sortingDataAccesor来解决此问题。

© www.soinside.com 2019 - 2024. All rights reserved.