Reputation: 779
How can I reset all of the column filters? Calling reset() seems to reset the table but all the fields of the filters remain unchanged.
Upvotes: 3
Views: 3791
Reputation: 3978
You can bind the input values to the table's filters, like this:
<input type="search" (input)="table.filter($event.target.value, 'FieldName', 'contains')" [value]="table.filters['FieldName']?.value" />
Notice the [value]
binding.
Upvotes: 2