How can I change the name of a widget?

4376
11
Jump to solution
10-15-2015 08:41 AM
BarryBiediger
New Contributor III

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."

11 Replies
RobertScheitlin__GISP
MVP Emeritus

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.

BarryBiediger
New Contributor III

Yes, that was it!  I was thinking the nls  widget label was only for the tooltip.  Thanks a lot Robert.