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)?

sapotsapot 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

  • kthorngrenkthorngren Posts: 21,336Questions: 26Answers: 4,953

    You can hide the default search input by removing the f from the dom string. Then create your own search input. Use the technique in this example to insert it with the dom option. In the event handler for your search input check the values. If you want to execute the search use the search() API.

    Kevin

Sign In or Register to comment.