I copied the Search widget into another directory named SearchTest to add some custom functionality. In this new widget, I changed the name in both manifest.json as well as in Widget.js, but when I go to add it in "Choose Widget" it still shows up as "Search" (now there are two "Search" widgets listed.) All my changes are working when I add the new widget to the map, I just can't figure out how to make it show up as "SearchTest."
Solved! Go to Solution.
Barry,
In the repoitems file you will find i18nLabels object there you will likely find that your default label for your version of search is still named search. I think this might be becasue in the serch widget nls folder there is a _widgetLabel named "Search" try changing that and deleting the repoitems again.
Yes, that was it! I was thinking the nls widget label was only for the tooltip. Thanks a lot Robert.