Hello
How can I get the entered text value with searchWidget?
// js code
You can check the searchTerm property
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#searchTerm
It just depends on what event you want to check it
searchWidget.on("suggest-start", () => {
console.log("term: ", searchWidget.searchTerm);
});
searchWidget.on("suggest-complete", () => {
console.log("term: ", searchWidget.searchTerm);
});
I want to show all my values in the search result in a container. How can I show this?
Can I get the returned values with the following code?
How can I show search results in a container?
// js code