<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic import legend/layerlist widget into custom widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853858#M11155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My goal is to import the legend and layerlist widgets into my custom widget so I can use them all in one panel. Is this something I can do?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2018 16:08:36 GMT</pubDate>
    <dc:creator>scottmiller10</dc:creator>
    <dc:date>2018-05-31T16:08:36Z</dc:date>
    <item>
      <title>import legend/layerlist widget into custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853858#M11155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My goal is to import the legend and layerlist widgets into my custom widget so I can use them all in one panel. Is this something I can do?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 16:08:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853858#M11155</guid>
      <dc:creator>scottmiller10</dc:creator>
      <dc:date>2018-05-31T16:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: import legend/layerlist widget into custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853859#M11156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Scott,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; Absolutely. Just add a few dives to your panel and set the styling for height and width and when you use the constructor method on the Legend and LayerList just place them in those divs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 22:43:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853859#M11156</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-05-31T22:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: import legend/layerlist widget into custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853860#M11157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help! The legend works, but it only shows up in my custom widget when I open up the legend widget. Is there a way to do this, maybe put the constructor in the legend.startup()? I think it happens because it only constructs the legend in legend.onOpen().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 15:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853860#M11157</guid>
      <dc:creator>scottmiller10</dc:creator>
      <dc:date>2018-06-01T15:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: import legend/layerlist widget into custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853861#M11158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The legend works, but it only shows up in my custom widget when I open up the legend widget&lt;/BLOCKQUOTE&gt;&lt;P&gt;???&lt;/P&gt;&lt;P&gt;I thought you where placing the Legend widget inside your custom widget panel? So what do you mean when you open the Legend widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 17:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853861#M11158</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-06-01T17:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: import legend/layerlist widget into custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853862#M11159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went into the Legend widget and pointed the constructors html parameter to a div in my custom widget. I wasn't aware that I could import the entire Legend into my custom widget. How do I go about doing that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 20:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853862#M11159</guid>
      <dc:creator>scottmiller10</dc:creator>
      <dc:date>2018-06-01T20:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: import legend/layerlist widget into custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853863#M11160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Maybe you should show some code as it seems like we are not&amp;nbsp;understanding each other.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 21:12:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853863#M11160</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-06-01T21:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: import legend/layerlist widget into custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853864#M11161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Legend widget's function onOpen(), I changed the Legend constructor to&amp;nbsp;&lt;/P&gt;&lt;P&gt;this.legend = new Legend(legendParams, document.getElementById('legend'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the 'legend' element is the name of the &amp;lt;div&amp;gt; in my custom widget, where I want the legend to appear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes it so that when I open the Legend widget from the panel, the Legend items appear in my custom widget in the 'legend' div.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works great, but I would like it to work without having to open the Legend widget from the panel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 21:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853864#M11161</guid>
      <dc:creator>scottmiller10</dc:creator>
      <dc:date>2018-06-01T21:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: import legend/layerlist widget into custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853865#M11162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So are you talking about a WAB Widget? If so that is why I am confused since you are posting in the JS API space and not the WAB space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 21:30:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853865#M11162</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-06-01T21:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: import legend/layerlist widget into custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853866#M11163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, sorry I wasn't aware they were different. Is there a way I can redirect my post?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 21:34:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853866#M11163</guid>
      <dc:creator>scottmiller10</dc:creator>
      <dc:date>2018-06-01T21:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: import legend/layerlist widget into custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853867#M11164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Scott,&lt;/SPAN&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; I will move it to the WAB space. So now that I understand you are using WAB this changes things. On is that in your custom widget you do not want to add the WAB otb Legend widget but just add the JS API Legend dijit.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 22:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/import-legend-layerlist-widget-into-custom-widget/m-p/853867#M11164</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-06-01T22:33:16Z</dc:date>
    </item>
  </channel>
</rss>

