3

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.

phelhe
  • 699
  • 3
  • 14
  • 20

1 Answers1

2

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.

Shlomo Zalman Heigh
  • 3,968
  • 8
  • 41
  • 71