Can someone guide me to the process of cloning a widget in the Web AppBuilder (Developer Edition). I can't seem to find a documentation to do this.
I copy one of your eSearch widget and rename it to eSearchCust. Than I open both of the file you suggested and change these area highlighted in yellow.
Everything went well when I add the eSearchCust widget and save the update.
Now, when I launch the map, and click on the new widget. This is what I get...
I used fiddler and it seem to look in the widget/eSearch/List.js.
Does this make sense? Are there more files that I have to change?
Yes with a widget as complicated as the eSearch there are going to be MANY more places in the code (*.js and *.html files) that the name eSearch is hard coded.
Hi Ha and Robert !
Regardless of the code of the widget, you must also add the widget name to list.json file to call it in the Builder and in the config.json in sample config for the developer side.
Actually No, I have never had to do that step as the builder will add it to that list automatically once it sees that there is new widget added.
oh ? So, sorry, maybe I have a problem in my WAB 'cause I always have to add it in the list.json...
I search through all the files in the eSearch widget and found one additional file that I have to change. This seem to fix the issue that I'm having.
For those that might be interested to know....
There are several more of these in the settings folder as well. Don't forget to mark this as answered.
Retrieving data ...