<?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: Layer List Widget (Beta) Button and Drop Down Menu Button not working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72786#M6565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Simon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also trying to program a dropdown menu or radio button to toggle my layers. My problem with the default Layer List Widget is that I don't want users to open two layers at the same time due to poor map overlaying. The dropdown menu or radio button would limit users' access to only one layer at a time. Can you share some your code so I can learn from your wisdom?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yi &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Sep 2015 13:59:48 GMT</pubDate>
    <dc:creator>YiQi2</dc:creator>
    <dc:date>2015-09-21T13:59:48Z</dc:date>
    <item>
      <title>Layer List Widget (Beta) Button and Drop Down Menu Button not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72781#M6560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know the Layer List Widget is still in Beta at v3.14, but I have been trying to add a Button (dijit.form.Button), or even better would be a Drop Down Menu Button (dijit.DropDownMenu) to the Layer List Widget via the button property.&amp;nbsp; I can add the button and it shows up fine, but the click event is not firing, so the button is useless.&amp;nbsp; I have tried using both a button and drop down menu button and tried using the LayerList button and content properties and both result in the same; the buttons show but do not work or fire the events.&amp;nbsp; It almost seems like the events are blocked.&amp;nbsp; It also seems like the button and content properties only support showing the parent node, no child nodes seem to display, so this could be related.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone successfully implemented buttons on the Layer List Widget?&amp;nbsp; and if so how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:30:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72781#M6560</guid>
      <dc:creator>SimonFisher</dc:creator>
      <dc:date>2015-08-19T19:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List Widget (Beta) Button and Drop Down Menu Button not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72782#M6561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This example shows both the button and a slider that have been attached to the LayerList and have been wired to do something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsbin.com/xarixa/edit?html,output" title="http://jsbin.com/xarixa/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 20:21:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72782#M6561</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-08-19T20:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List Widget (Beta) Button and Drop Down Menu Button not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72783#M6562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My scenario is a bit different as I am dynamically creating the layers for the layer list and thus dynamically creating the buttons programmatically in JavaScript not declaratively like your example.&amp;nbsp; But your example does prove that the button property does work, so thanks for sharing.&amp;nbsp; I have been able to add the sliders to the content property programmatically and added drop down menu buttons to the button property declaratively.&amp;nbsp; Just not able to add the drop down buttons programmatically yet, they show but don't work, but it could be something I'm missing in my own code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for sharing,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 17:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72783#M6562</guid>
      <dc:creator>SimonFisher</dc:creator>
      <dc:date>2015-08-20T17:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List Widget (Beta) Button and Drop Down Menu Button not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72784#M6563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your code or create an example of what you're doing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 17:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72784#M6563</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-08-20T17:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List Widget (Beta) Button and Drop Down Menu Button not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72785#M6564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay here as I have been on vacation for a few weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to figure this out, it seems I have to do my dynamic creation of the button and popup menus and add to the layer List after the Layer List is loaded.&amp;nbsp; If I do this prior to the Layer List load and pass in the UI gets messed up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing me in the right direction!&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 19:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72785#M6564</guid>
      <dc:creator>SimonFisher</dc:creator>
      <dc:date>2015-09-09T19:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List Widget (Beta) Button and Drop Down Menu Button not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72786#M6565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Simon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also trying to program a dropdown menu or radio button to toggle my layers. My problem with the default Layer List Widget is that I don't want users to open two layers at the same time due to poor map overlaying. The dropdown menu or radio button would limit users' access to only one layer at a time. Can you share some your code so I can learn from your wisdom?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yi &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 13:59:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-widget-beta-button-and-drop-down-menu/m-p/72786#M6565</guid>
      <dc:creator>YiQi2</dc:creator>
      <dc:date>2015-09-21T13:59:48Z</dc:date>
    </item>
  </channel>
</rss>

