I've tried this: Angular + Material - How To Refresh A Data Source (mat-table) and it works, too well, actually!
I want to filter OUT a value and show all others, but this is doing the reverse.
applyFilter("INACTIVE"); <-- This only "SHOWS", of course, all INACTIVE records, but I want the opposite.
applyFilter(filterValue: string) {
filterValue = filterValue.trim();
//filterValue = filterValue.toLowerCase();
this.applicationList.filter = filterValue;
}
refresh() {
this.changeDetectorRefs.detectChanges();
}
The values I want to show are: IN_PROGRESS, ACTIVE, NEW and the only value I do not want to show is: INACTIVE.
When I call this applyFilter() function, I use the arguement: "INACTIVE" but the result is "ONLY INACTIVE" records... but I want the opposite: Not SHOW the INACTIVE but everything else.
Thank you