I\'ve been trying to get this working with no luck. I\'ve been referencing these resources for help:
http://swimlane.github.io/ngx-datatable/#filter
https://github.com/swiml
While storing the data in rows list at that time also initilize perttemp list, so that we can fetch after filter
updateFilter(event) {
const val = event.target.value.toLowerCase();
if(val) {
this.temp = this.rows;
// filter our data
const temp = this.temp.filter(function (d) {
return ( d.name.toLowerCase().indexOf(val) !== -1 || d.email.toLowerCase().indexOf(val) !== -1 || !val);
});
this.rows = temp;
}
else
{
this.rows = this.perttemp;
}
}