If your website is a single page application or if your website doesn't require a page refresh on user interactions, you'll want to make use of the following methods below.
When a user performs an action that should hide the autosuggest, you can call
If your search bar gets umounted or removed from the page, you'll want to do some clean up. Calling
dispose() will remove all the elements, listeners, and styles that were added to the page during client instantiation.
You may style autocomplete suggestions in any way you'd like. Suggestions are returned with the following HTML markup