Select to view content in your preferred language

How to make 3D WAB Search widget display history?

518
0
07-20-2023 11:46 AM
Labels (2)
MichaelLev
Frequent Contributor

3D WAB Search (4.* javascript API) has the mechanism to display list of search options.
e.g. - it display some options when I start typing.

I want to expand this mechanism to display also the addresses I searched before (search history") and enale selecting my search string from this list, if I want to.

My steps are:

1. I succeeded to fill up an array with the previous search strings.

2. I declare: this.searchDijit.on("search-focus", this.onFocus);
and then I check if this.searchDijit.searchTerm is empty.

3. Now this is the step I am struggling now: How do I expand the mechanism above to show the history?

Help will be greatly appreciated.

0 Replies