简体   繁体   English

primeng p-table 复选框和过滤器

[英]primeng p-table checkbox and filter

请我不知道如何解决这个问题。表格过滤器未与表格标题对齐

Hello everyone, i am using p-table, p-headercheckbox.大家好,我正在使用 p-table,p-headercheckbox。 p-tableCheckbox and additional filter for each column. p-tableCheckbox 和每列的附加过滤器。 The problem is that filters are not aligning with headers.问题是过滤器没有与标题对齐。

You should include an empty <th></th> before the rest of the filters to take the place of the checkbox column.您应该在过滤器的 rest 之前包含一个空的<th></th>以代替复选框列。

<tr>
  <th></th>
  <th *ngFor="let col of columns" [ngSwitch]="col.field">
    ...
  </th>
</tr>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 primeng p-table,p-multiselect 过滤器未显示 - primeng p-table, p-multiselect filter not showing PrimeNG p-table:重置表格过滤器时如何清除 p-dropdown 过滤器值? - PrimeNG p-table: How to clear p-dropdown filter values when resetting table filters? PrimeNG - 粘性 header 在 p 表中不起作用 - PrimeNG - Sticky header not working in p-table primeng,p表列“重新排序”不起作用 - primeng, p-table column “reorder” is not working PrimeNG p-table 除了表的名称外不显示任何内容 - PrimeNG p-table doesn't show anything but the name of the table p-table 的粘性标题在 Primeng 中不能与 [scrollable] = true 一起使用。? - Sticky header of p-table not working with [scrollable] = true in Primeng.? Angular5-PrimeNG-p表组件分页器选择的选项卡在数据重新加载时重置为第一个选项卡 - Angular5 - PrimeNG - p-table component paginator selected tab resets to first tab on data reload PrimeNG <p-table> 和 <p-calendar> 在国际资源管理器中刷新后,图标未显示(IE7,11) - PrimeNG <p-table> and <p-calendar> icon's not showing after Refresh in Internate Explorer (IE7,11) header 中的 SelectAll 复选框在使用 p-tableHeaderCheckbox 和 p-table 时移至下一页时应取消选中 - SelectAll checkbox in header should get unchecked when move to next page when using p-tableHeaderCheckbox and p-table P-table水平滚动不显示 - P-table Horizontal Scroll Not Displaying
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM