Multiple search term for input field filters? #1156
-
Is it possible to have multiple search terms in an input field like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The only filters with multiple values are with a multiple select dropdown or by using range |
Beta Was this translation helpful? Give feedback.
-
Hi :D I think this.callback limits me to filter data on my own. I tried multiple
I tried creating my own callback, but I think i'll need to understand how this |
Beta Was this translation helpful? Give feedback.
I don't know why you try to implement a different
callback
but that probably won't work,this._onSearchChange
is only used internally in the FilterService to know that a filter change got triggered, you should never have to play with that at all. It looks like you're trying to overcomplicate things.What you should try to do is to see how the Select Filter (single/multiple) works and implement something similar, if you look at this code
https://github.com/ghiscoding/slickgrid-universal/blob/d0179120567186f505e44e4d19b8965b02ff2511/packages/common/src/filters/selectFilter.ts#L439-L448
this.callback(undefined, { columnDef: this.columnDef, operator: this.operator, searchTerms: selectedItems,…