<?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: When  a listitem is clicked in layerlist widget, how to change its parent and sublayers' visible in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-a-listitem-is-clicked-in-layerlist-widget-how/m-p/1103966#M74856</link>
    <description>&lt;P&gt;I'm not quite sure what you're trying to do, but each ListItem has a reference to its &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#parent" target="_self"&gt;parent&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#children" target="_self"&gt;children&lt;/A&gt; you can interact with. This demo does that.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/ExXJKya?editors=1000" target="_blank"&gt;https://codepen.io/odoe/pen/ExXJKya?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 15:20:10 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2021-10-01T15:20:10Z</dc:date>
    <item>
      <title>When  a listitem is clicked in layerlist widget, how to change its parent and sublayers' visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-a-listitem-is-clicked-in-layerlist-widget-how/m-p/1103879#M74853</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;did anyone build or find a solution for changing a listitem's parent and sublayers' visible when it is clicked in layerlist widget?&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 09:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-a-listitem-is-clicked-in-layerlist-widget-how/m-p/1103879#M74853</guid>
      <dc:creator>BINJI</dc:creator>
      <dc:date>2021-10-01T09:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: When  a listitem is clicked in layerlist widget, how to change its parent and sublayers' visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-a-listitem-is-clicked-in-layerlist-widget-how/m-p/1103966#M74856</link>
      <description>&lt;P&gt;I'm not quite sure what you're trying to do, but each ListItem has a reference to its &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#parent" target="_self"&gt;parent&lt;/A&gt; and &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#children" target="_self"&gt;children&lt;/A&gt; you can interact with. This demo does that.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/ExXJKya?editors=1000" target="_blank"&gt;https://codepen.io/odoe/pen/ExXJKya?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 15:20:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-a-listitem-is-clicked-in-layerlist-widget-how/m-p/1103966#M74856</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-10-01T15:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: When  a listitem is clicked in layerlist widget, how to change its parent and sublayers' visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-a-listitem-is-clicked-in-layerlist-widget-how/m-p/1104167#M74859</link>
      <description>&lt;P&gt;Hi，Thanks for your reply.&amp;nbsp; When a listitem's visibile is changed to true, it has&amp;nbsp;&lt;SPAN class=""&gt;looped&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;walk&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;through&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;the&lt;SPAN&gt;&amp;nbsp;parent&amp;nbsp; setting visible attribute to true，but as the same time, I want to set it's all&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;children's&amp;nbsp;&lt;SPAN&gt;visible attribute to true. How to&amp;nbsp;do this？&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 07:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-a-listitem-is-clicked-in-layerlist-widget-how/m-p/1104167#M74859</guid>
      <dc:creator>BINJI</dc:creator>
      <dc:date>2021-10-02T07:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: When  a listitem is clicked in layerlist widget, how to change its parent and sublayers' visible</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-a-listitem-is-clicked-in-layerlist-widget-how/m-p/1104213#M74860</link>
      <description>&lt;P&gt;In that sample you can just loop through the children and set their visibility too.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 22:38:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-a-listitem-is-clicked-in-layerlist-widget-how/m-p/1104213#M74860</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-10-02T22:38:30Z</dc:date>
    </item>
  </channel>
</rss>

