HelloHow 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
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#events-summary
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?
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.