primeng p-table 复选框和过滤器
primeng p-table checkbox and filter
大家好!我正在为每一列使用 p-table、p-headercheckbox、p-table 复选框和附加过滤器。问题是过滤器没有与 headers.
对齐
您应该在其余过滤器之前包含一个空 <th></th>
以取代复选框列。
<tr>
<th></th>
<th *ngFor="let col of columns" [ngSwitch]="col.field">
...
</th>
</tr>
大家好!我正在为每一列使用 p-table、p-headercheckbox、p-table 复选框和附加过滤器。问题是过滤器没有与 headers.
对齐您应该在其余过滤器之前包含一个空 <th></th>
以取代复选框列。
<tr>
<th></th>
<th *ngFor="let col of columns" [ngSwitch]="col.field">
...
</th>
</tr>