I want wanted to configure a select widget in my WAB code on my local to have only the selectBy Polygon instead of the out of the box SelectBy square settings. So I created a new WAB app with those settings, downloaded the code, and attempted to copy the new select widget from the downloaded folder. I immediately realized there was no Widget.html file and no manifest.json file. Everything else looked similar in terms of file structure. I also noticed that the Widget.js code looked a lot different (It was no formatted correctly and looked almost minified) than the original select Widget.js file. For example, there was a selectBy parameter in the new code, but nothing in the original code (I thought maybe I could just modify the original). Any suggestions as to what's going on here? The new widget definitely won't add to my app view without those missing files.
Solved! Go to Solution.
Justin,
When downloading an app from AGOL WAB all the code will be minified/uglified. You really did not need to go though all that just to change the SelectBy options avaulable in your widget. just go to your apps folder and then the configs folder and find the select widgets folder and modify the select widgets json manually.
"geometryTypes": [
"POLYGON"
],
Justin,
When downloading an app from AGOL WAB all the code will be minified/uglified. You really did not need to go though all that just to change the SelectBy options avaulable in your widget. just go to your apps folder and then the configs folder and find the select widgets folder and modify the select widgets json manually.
"geometryTypes": [
"POLYGON"
],
Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.
Hey Robert,
Thanks for the assist. I marked your answer as correct. Wanna help me with my new question? Api url won’t work with my esri/request method… ☹
-JB