Event before the search is done to be able to cancel the search (doesn't trigger server calls)?
Event before the search is done to be able to cancel the search (doesn't trigger server calls)?
sapot
Posts: 14Questions: 8Answers: 0
I want to have more control of my search where some specifics strings I don't do the search (server calls) and just ignore it.
I know about the search event but it doesn't seem to have a way to cancel the search. Is there any other event or a way to control this and cancel the search?
Replies
You can hide the default search input by removing the
f
from thedom
string. Then create your own search input. Use the technique in this example to insert it with thedom
option. In the event handler for your search input check the values. If you want to execute the search use thesearch()
API.Kevin