ng2-table icon indicating copy to clipboard operation
ng2-table copied to clipboard

All column search working on case sensitive. How to change that

Open krishnanjk7 opened this issue 6 years ago • 2 comments

krishnanjk7 avatar Jun 29 '18 06:06 krishnanjk7

Hi, There are two or three components which I can see in your repository. I am very much confused that from where I need to start

anchalgaur avatar Jul 16 '18 10:07 anchalgaur

Just change the TS code in your changeFilter method to do what ever you want with regard to case. For example, if you want to ignore case, do a reg ex with "i" like this:

item[column.name].match(new RegExp(column.filtering.filterString, 'i'))

This is what I do and it seems to work just fine.

breitling avatar Aug 30 '18 12:08 breitling