Kusumoto / PrimeNG.TableFilter

Helper for use the PrimeNG table load lazy filter in backend use LINQ to Entity
MIT License
17 stars 10 forks source link

Feature request : case sensitivity and accents sensitivity for string filters. #37

Open LouLeGrain opened 1 year ago

LouLeGrain commented 1 year ago

First of all, thanks a lot for this project, it's really helpful for implementing lazy loading with Prime NG tables.

1. Case sensitivity

I'm trying on my side to implement a boolean parameter, to determine if we want the string filters to be case sensitive or not, but i'm having some difficulties to fully understand the logic of this nice piece of software.

As for now it is case sensitive by default.

Of course the default solution would be to convert both the filter value and the compared values to uppercase (or to lower, does it matter ?)

2. Accent sensitivity

I'd like to have accent insensitive compare too, it could be determined by a boolean parameter as well.

(eg: café == cafe)

Here's a list of some of the most common accented characters that need to be handled

wjens commented 9 months ago

I too would like case insensitive searches. I can't find where to apply the ToLower() to the content being searched on. I don't want to convert the values before searching because the data sent back should preserve case - just ignore it for the search.