primeng-table

PrimeNG p-table: How to clear p-dropdown filter values when resetting table filters?

我的梦境 提交于 2020-06-13 09:10:39
问题 I am using PrimeNG p-table with a header row that has both input and p-dropdown filters and need to clear the filter values of the input and p-dropdown when calling the .reset() method on the table. As other's have pointed out (https://stackoverflow.com/a/51402834/5764320), you can use [value] on input elements, but there doesn't seem to be a way to clear any non- input filter values. How can I reset the filters values for the p-dropdown (and other non- input filter types)? 回答1: I figured out

First column repeating in both froze & unfroze table in Primeng table

蓝咒 提交于 2019-12-11 15:41:19
问题 I am working on one project where I used PrimeNg table with froze & unfroze column property and its working fine in normal column creating with *NgFor but if I add new column without *NgFor its repeating in both froze & unfroze table. How to overcome this issue as I want that column only on froze column not on unfroze column. My Code: <ng-template pTemplate="header" let-columns> <tr> <th>All</th> <th *ngFor="let col of columns"> {{col.header}} </th> </tr> </ng-template> <ng-template pTemplate