<?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 Re: Customize Legend Widget in WAB 2.6 in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838625#M9047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;How can I&amp;nbsp;put custom legend HTML in bottom of dynamic legend HTML?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2018 14:02:31 GMT</pubDate>
    <dc:creator>BineetBara</dc:creator>
    <dc:date>2018-07-09T14:02:31Z</dc:date>
    <item>
      <title>Customize Legend Widget in WAB 2.6</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838623#M9045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having tiled map services as a base map for which legend is not shown in Legend widget. I created images for different scales and toggle the images at zoom in/out. in the legend widget. The image comes above the dynamic feature layer legend , I want it below the dynamic legend shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Legend" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/413495_LegendIssue.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bineet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 04:45:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838623#M9045</guid>
      <dc:creator>BineetBara</dc:creator>
      <dc:date>2018-07-09T04:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Legend Widget in WAB 2.6</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838624#M9046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Bineet,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;What does your code look like for placing this item?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 12:29:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838624#M9046</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-09T12:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Legend Widget in WAB 2.6</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838625#M9047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;How can I&amp;nbsp;put custom legend HTML in bottom of dynamic legend HTML?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 14:02:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838625#M9047</guid>
      <dc:creator>BineetBara</dc:creator>
      <dc:date>2018-07-09T14:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Legend Widget in WAB 2.6</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838626#M9048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do a query for the&amp;nbsp;DOM object and use domContruct place to place the new element in your desired location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 15:26:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838626#M9048</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-09T15:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Legend Widget in WAB 2.6</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838627#M9049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this but it is not working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my requirement static legend should come after dynamic legend which is dynamically generating.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached &lt;EM&gt;widget.js&lt;/EM&gt; and &lt;EM&gt;widget.html&lt;/EM&gt; with screenshots.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 12:44:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838627#M9049</guid>
      <dc:creator>BineetBara</dc:creator>
      <dc:date>2018-07-10T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Legend Widget in WAB 2.6</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838628#M9050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bineet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So your issue is that you have this line in your onOpen function:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;legend &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Legend&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;legendParams&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; html&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;create&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"div"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;domNode&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Which means that each time your widget is opened you create a Legend dijit and place it in the widgets main dom node. You do not specify a specific div in the widgets template to place the Legend Dijit in. This is how the OTB widget was developed but you are trying to add your elements at a specific position so you can not use that method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 13:09:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/customize-legend-widget-in-wab-2-6/m-p/838628#M9050</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-07-10T13:09:08Z</dc:date>
    </item>
  </channel>
</rss>

