I'm trying to make a filter with passing multiple values for the filter but have only a single return.
field: 'name',
filter: {
condition: function(searchTerm, cellValue) {
var strippedValue = (searchTerm).split(';');
//console.log(strippedValue);
for (i = 0; i < strippedValue.length; i++){
if (cellValue.indexOf(strippedValue[i]) == -1)
return false;
return true;
}
//return cellValue.indexOf(strippedValue) >= 0;
}
}, headerCellClass: $scope.highlightFilteredHeader
find the test code here http://plnkr.co/edit/UVDWfucjclXl4Ij9Ylm7?p=preview