I'm using SearchBox in my project from "Geocode online" example .When I creating SearchBox, text imput starting value seems like picture below.How can I change this starting text value or can I add own starting text imput (because my application contains different area not "357 Geary Blvd, San Francisco" ) when create SearchBox in the app ?
Thanks.
Solved! Go to Solution.
Hey KK,
You can just change the source, as it is a QML file. Right click on SearchBox in your Qt Creator, and select to Follow Symbol Under Cursor. Here you can change up the searchTextInput property along with the "textInput" component to say whatever you want. You could also change it to make it a configurable property. Here is an issue in the github repo to fix it up - Change SearchBox so that the default text displayed is a configurable property · Issue #55 · Esri/ar...
If you get something put together that works well, please submit a pull request. Otherwise, we will add something in shortly.
Thanks,
Luke
Hey KK,
You can just change the source, as it is a QML file. Right click on SearchBox in your Qt Creator, and select to Follow Symbol Under Cursor. Here you can change up the searchTextInput property along with the "textInput" component to say whatever you want. You could also change it to make it a configurable property. Here is an issue in the github repo to fix it up - Change SearchBox so that the default text displayed is a configurable property · Issue #55 · Esri/ar...
If you get something put together that works well, please submit a pull request. Otherwise, we will add something in shortly.
Thanks,
Luke
Thanks Lucas solved.