'PrimeNG - Filter over an array of strings in datatable
I want to filter a plain array of strings which is presented through a p-table. I know how to apply filtering and custom filtering in a list of objects through various ways, using their column properties but I have literally found no example for filtering into a list of plain strings
<p-table #table [value]="answers">
......
</p-table>
where answers is a list of strings
public answers: string[] = [];
I have thought that convert my answers object from array of strings into an array of single string property object as a solution, but I am wondering whether there is any way to keep it simple as that
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
