<?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 WAB - prevent in panel widget openAtStart on mobile in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-prevent-in-panel-widget-openatstart-on-mobile/m-p/522973#M13697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to disable the openAtStart config for a in panel widget on mobile device. I know in config.json there is a mobileLayout section but it seems to not work for widget that are in a widgetPool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the part of my config.json where the widget is defined:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"widgetPool": {
    "panel": {
      "uri": "themes/LaunchpadTheme/panels/LaunchpadPanel/Panel",
      "position": {
        "relativeTo": "map"
      }
    },
    "widgets": [
      {
        "name": "LayerList",
        "version": "2.13",
        "uri": "widgets/LayerList/Widget",
        "config": "configs/LayerList/config_widgets_LayerList_Widget_41.json",
        "index": 1,
        "id": "widgets_LayerList_Widget_41",
        "label": "Liste de toutes les couches",
        "openAtStart": true
      }
  ]
}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I could modify the widget.js to close it automatically if jimuUtils.inMobilieSize(), but that's not what I am trying to achieve. I would like to prevent the openAtStart completely.&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>Sat, 11 Dec 2021 22:48:04 GMT</pubDate>
    <dc:creator>MaximeDemers</dc:creator>
    <dc:date>2021-12-11T22:48:04Z</dc:date>
    <item>
      <title>WAB - prevent in panel widget openAtStart on mobile</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-prevent-in-panel-widget-openatstart-on-mobile/m-p/522973#M13697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to disable the openAtStart config for a in panel widget on mobile device. I know in config.json there is a mobileLayout section but it seems to not work for widget that are in a widgetPool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the part of my config.json where the widget is defined:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"widgetPool": {
    "panel": {
      "uri": "themes/LaunchpadTheme/panels/LaunchpadPanel/Panel",
      "position": {
        "relativeTo": "map"
      }
    },
    "widgets": [
      {
        "name": "LayerList",
        "version": "2.13",
        "uri": "widgets/LayerList/Widget",
        "config": "configs/LayerList/config_widgets_LayerList_Widget_41.json",
        "index": 1,
        "id": "widgets_LayerList_Widget_41",
        "label": "Liste de toutes les couches",
        "openAtStart": true
      }
  ]
}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I could modify the widget.js to close it automatically if jimuUtils.inMobilieSize(), but that's not what I am trying to achieve. I would like to prevent the openAtStart completely.&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>Sat, 11 Dec 2021 22:48:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-prevent-in-panel-widget-openatstart-on-mobile/m-p/522973#M13697</guid>
      <dc:creator>MaximeDemers</dc:creator>
      <dc:date>2021-12-11T22:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: WAB - prevent in panel widget openAtStart on mobile</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-prevent-in-panel-widget-openatstart-on-mobile/m-p/522974#M13698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maxime,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I only did limited testing but if you make this change to the BaseLayoutManager.js. It worked for me.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;      &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;openAtStartWidget &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; widgetConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;openAtStart&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;jimuUtils&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;inMobileSize&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;
          iconDijit&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;switchToOpen&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;openAtStartWidget &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; widgetConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&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;/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 22:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-prevent-in-panel-widget-openatstart-on-mobile/m-p/522974#M13698</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T22:48:07Z</dc:date>
    </item>
  </channel>
</rss>

