valor-software / ng2-table

Simple table extension with sorting, filtering, paging... for Angular2 apps
http://valor-software.github.io/ng2-table/
MIT License
553 stars 336 forks source link

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

Open krishnanjk7 opened 6 years ago

anchalgaur commented 6 years ago

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

breitling commented 6 years ago

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.