AnsweredAssumed Answered

Help with creating Widgets- ?

Question asked by anncrystal on Feb 5, 2018
Latest reply on Feb 7, 2018 by anncrystal

I am having a hard time understanding the creation of widgets even after going thru' both Dojo and ArcGIS JS widget creation tutorial. I created a widget for webmap- but I am stuck at writing Search widget as I am not sure about how map can be pulled into this widget. 


Instead of posting the code for my widget, I have put together a simple basic map using a portal webmap with a search functionality (Thanks to Robert for the Floating panel layerlist) as in this fiddle:


Edit fiddle - JSFiddle 


Could anybody please separate map and search as two different widgets  which will help me understand the concept? I'll be loading the widget's config from a json file. Any pointers will be helpful!! Thanks in advance