stwe / DatatablesBundle

This Bundle integrates the jQuery DataTables plugin into your Symfony application.
355 stars 236 forks source link

Ability to use multiple keywords in global search #898

Open Zoopme opened 5 years ago

Zoopme commented 5 years ago

I have found that is was very frustrating to to be able to use multiple keywords in the global search filters.

For example, we had a customer field in our organisation with values such as "Daniel Brian Brown" and when people were entering "Daniel Brown" in the global search, it would not come up.

Therefore, I have added a new 'keywords_string' value to the 'global_search_type' option. It makes datatables much more flexible when using the global search filter to find information.

I hope you like it and you can merge it soon !

stephanvierkant commented 5 years ago

Thanks for this feature! I agree this is really frustrating.

This bundle has very little unit tests, but with all new features that's becoming a real pain. Can you provide a test for this new feature?

Zoopme commented 5 years ago

Hi @stephanvierkant, Thanks for your answer. I will do my best to add some tests. I need to find the spare time and get my head around it though :)