Sheet: needs filterMatchMode
Posted: 11 Oct 2018, 17:33
So I have a sheet with some columns that are of the dropdown type with selectItems created from a list of POJO's.
That means that the selectItems value will be (in my case) an int. This poses a problem with the filter as that is implemented with only a "contains" rule.
So filtering on the value 1 will return 1's but also 10's, 11's, and so on.
I was a bit suprised that no one needed different rules up until now.
I have already implemented a filterMatchMode attribute and it does the job. Possible math rules are: "startsWith", "endsWith", "contains" and "exact".
Would you like a PR for that?
That means that the selectItems value will be (in my case) an int. This poses a problem with the filter as that is implemented with only a "contains" rule.
So filtering on the value 1 will return 1's but also 10's, 11's, and so on.
I was a bit suprised that no one needed different rules up until now.
I have already implemented a filterMatchMode attribute and it does the job. Possible math rules are: "startsWith", "endsWith", "contains" and "exact".
Would you like a PR for that?