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:
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