<?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 Can Layer List Widget Be Open By Default in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344922#M9186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developing a WAB app using Developer edition 2.4. &amp;nbsp;I had a couple questions about the Layer List widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is it possible to have the widget open when the map first loads?&lt;/P&gt;&lt;P&gt;2. Is it possible to have a map service containing sub-layers to be expanded by default? I have an image of what I would prefer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="list layer widget expanded by default screen shot" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/357643_temp.PNG" style="width: 620px; height: 429px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jun 2017 15:07:15 GMT</pubDate>
    <dc:creator>PatrickMcKinney1</dc:creator>
    <dc:date>2017-06-19T15:07:15Z</dc:date>
    <item>
      <title>Can Layer List Widget Be Open By Default</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344922#M9186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developing a WAB app using Developer edition 2.4. &amp;nbsp;I had a couple questions about the Layer List widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is it possible to have the widget open when the map first loads?&lt;/P&gt;&lt;P&gt;2. Is it possible to have a map service containing sub-layers to be expanded by default? I have an image of what I would prefer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="list layer widget expanded by default screen shot" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/357643_temp.PNG" style="width: 620px; height: 429px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 15:07:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344922#M9186</guid>
      <dc:creator>PatrickMcKinney1</dc:creator>
      <dc:date>2017-06-19T15:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can Layer List Widget Be Open By Default</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344923#M9187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Sure, to have the widget open at start then you just have to enable the open at start in the widgets settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #4c4c4c; margin-bottom: 1.55rem;"&gt;The widget added from the widgets collection can be set to open automatically when apps start. To do so, click the dot on the widget to change it to dark green. A maximum of two widgets can open automatically: one is on the controller and another in the placeholder.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Widget with open at start" src="https://developers.arcgis.com/web-appbuilder/guide/GUID-07D41E87-DECE-4A3B-8C1F-00C2B4E52798-web.png" style="border: none;" title="Widget with open at start" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For having the layers expanded by default see this thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/thread/189567-show-legend-in-layer-list-widget-by-default#comment-663376" title="https://community.esri.com/thread/189567-show-legend-in-layer-list-widget-by-default#comment-663376"&gt;https://community.esri.com/thread/189567-show-legend-in-layer-list-widget-by-default#comment-663376&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 15:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344923#M9187</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-19T15:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can Layer List Widget Be Open By Default</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344924#M9188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Not sure how I missed that. I ended up using a CSS trick to have the list expanded:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/* Layer list expanded by default */&lt;/SPAN&gt;
&lt;SPAN class="selector token"&gt;.jimu-widget-layerList table.layer-sub-node&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="property token"&gt;display&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; table&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;/* layer list legend hidden so it loads properly */&lt;/SPAN&gt;
&lt;SPAN class="selector token"&gt;.jimu-widget-layerList table.layer-sub-node .legends-loading-img&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="property token"&gt;display&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; none&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:15:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344924#M9188</guid>
      <dc:creator>PatrickMcKinney1</dc:creator>
      <dc:date>2021-12-11T16:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can Layer List Widget Be Open By Default</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344925#M9189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Hmm. never seen it done with css. Don't forget to mark this question as answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 19:25:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344925#M9189</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-19T19:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can Layer List Widget Be Open By Default</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344926#M9190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any links you could share for how to implement that CSS script?&amp;nbsp; I would love for my layers list to open as expanded, but I'm not sure how to implement the CSS script.&amp;nbsp; Do you have any additional resources you could share in this tread on this procedure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 18:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344926#M9190</guid>
      <dc:creator>AndrewBartell</dc:creator>
      <dc:date>2018-06-06T18:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can Layer List Widget Be Open By Default</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344927#M9191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also interested in what you did to the CSS to keep the layer list expanded; not exactly sure which file gets manipulated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 18:56:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344927#M9191</guid>
      <dc:creator>Brownschuh</dc:creator>
      <dc:date>2018-06-08T18:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can Layer List Widget Be Open By Default</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344928#M9192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've added a &lt;A href="https://gist.github.com/pmacMaps/06bd1e3d3197f6b5225757ef509f9475"&gt;Gist&lt;/A&gt; on GitHub with the CSS rules for achieving this.&amp;nbsp; I always create a style.css file for each WAB project, where I store the default rules in the style tag, along with my custom styles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two rules to achieve the result. A sample map can be found at&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://gis.ccpa.net/911/" title="http://gis.ccpa.net/911/"&gt;911 CAD Map&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 18:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344928#M9192</guid>
      <dc:creator>PatrickMcKinney1</dc:creator>
      <dc:date>2018-06-18T18:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can Layer List Widget Be Open By Default</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344929#M9193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;Once the widgets are grouped can one widget be defaulted to expand and the rest be closed?&amp;nbsp; I have multiple layer list widgets in one grouping, I would like the first one to display when the group is opened and the others to be closed.&amp;nbsp; Below is what it looks now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="285" src="https://community.esri.com/legacyfs/online/511380_pastedImage_1.png" width="228" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 20:24:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344929#M9193</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-10-20T20:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can Layer List Widget Be Open By Default</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344930#M9194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you seen this thread?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/201369-wab-how-do-i-edit-the-group-widget-layout"&gt;https://community.esri.com/thread/201369-wab-how-do-i-edit-the-group-widget-layout&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 20:47:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-layer-list-widget-be-open-by-default/m-p/344930#M9194</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-10-20T20:47:18Z</dc:date>
    </item>
  </channel>
</rss>

