Skip to content

Multiple search term for input field filters? #1156

Answered by ghiscoding
ptatoChi asked this question in Q&A
Discussion options

You must be logged in to vote

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,…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ghiscoding
Comment options

Answer selected by ptatoChi
@ptatoChi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants