<?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 How to minimize and maximize widget ? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361957#M9593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing a widget where as per client resolution I want to change widget state like minimize and maximize. However I have followed following documentation but still no help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/web-appbuilder/sample-code/close-widget-programmatically.htm" title="https://developers.arcgis.com/web-appbuilder/sample-code/close-widget-programmatically.htm"&gt;Close widget programmatically—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed the WidgetManager class but not able to work with that class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Jan 2015 12:09:38 GMT</pubDate>
    <dc:creator>AmeyaNatu1</dc:creator>
    <dc:date>2015-01-27T12:09:38Z</dc:date>
    <item>
      <title>How to minimize and maximize widget ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361957#M9593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am developing a widget where as per client resolution I want to change widget state like minimize and maximize. However I have followed following documentation but still no help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/web-appbuilder/sample-code/close-widget-programmatically.htm" title="https://developers.arcgis.com/web-appbuilder/sample-code/close-widget-programmatically.htm"&gt;Close widget programmatically—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed the WidgetManager class but not able to work with that class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 12:09:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361957#M9593</guid>
      <dc:creator>AmeyaNatu1</dc:creator>
      <dc:date>2015-01-27T12:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize and maximize widget ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361958#M9594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ameya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Can ou post the code that you have tried? Are you using the Tab theme or the foldable theme?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 20:08:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361958#M9594</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-02-01T20:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize and maximize widget ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361959#M9595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Initially I have tried to to use WidgetManager class, because in that class there are two methods one is maximizeWidget and another is minimizeWidget. However I have access them on my function but nothing widget is not minimizing or maximizing. Therefore I have looked for the code for minimizing and maximizing button the widget panel and I have found following code which is giving me auto minimize and maximize functionality in my widget .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this.panelManager.getPanelById(this.id + '_panel').onTitleClick();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 05:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361959#M9595</guid>
      <dc:creator>AmeyaNatu1</dc:creator>
      <dc:date>2015-02-02T05:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize and maximize widget ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361960#M9596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried Widget Manager's minimizeWidget and maximizeWidget methods and see no use of those methods. Using&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="_jivemacro_uid_14327846664021960 jive_macro_code jive_text_macro" data-renderedposition="71_8_912_16" jivemacro_uid="_14327846664021960"&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;this.panelManager.getPanelById(this.id + '_panel').onTitleClick();&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;is an alternate to achieve this for foldable theme, but the same does not work for tabbed theme. Any help in understanding how to do this is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks in advance. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 03:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361960#M9596</guid>
      <dc:creator>sai_phaneendra</dc:creator>
      <dc:date>2015-05-28T03:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize and maximize widget ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361961#M9597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="keyword"&gt;this.panelManager.closePanel(&lt;SPAN class="keyword"&gt;this&lt;/SPAN&gt;.id + &lt;SPAN class="string"&gt;'_panel'&lt;/SPAN&gt;); // To close the panel&lt;/SPAN&gt;
&lt;SPAN class="keyword"&gt;&lt;SPAN class="keyword"&gt;this.panelManager.showPanel(&lt;SPAN class="keyword"&gt;this&lt;/SPAN&gt;.id + &lt;SPAN class="string"&gt;'_panel'&lt;/SPAN&gt;); // To show the panel&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="keyword"&gt;&lt;SPAN class="keyword"&gt;&lt;SPAN class="keyword"&gt;&lt;SPAN class="keyword"&gt;this.panelManager.minimizePanel(&lt;SPAN class="keyword"&gt;this&lt;/SPAN&gt;.id + &lt;SPAN class="string"&gt;'_panel'&lt;/SPAN&gt;); // To minimize the panel&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="keyword"&gt;&lt;SPAN class="keyword"&gt;&lt;SPAN class="keyword"&gt;&lt;SPAN class="keyword"&gt;&lt;SPAN class="keyword"&gt;&lt;SPAN class="keyword"&gt;this.panelManager.maximizePanel(&lt;SPAN class="keyword"&gt;this&lt;/SPAN&gt;.id + &lt;SPAN class="string"&gt;'_panel'&lt;/SPAN&gt;); // To maximize the panel&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361961#M9597</guid>
      <dc:creator>LarryStout</dc:creator>
      <dc:date>2021-12-11T16:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize and maximize widget ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361962#M9598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your inputs on this Larry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As said by Ameya in his description earlier I have tried using minimizePanel and maximizePanel as suggested&amp;nbsp; in &lt;A class="jive-link-external-small" href="https://developers.arcgis.com/web-appbuilder/sample-code/close-widget-programmatically.htm" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;Close widget programmatically—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;​.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that didn't help, also the alternate titleClick works only for foldable theme and not for other themes and floating place holders.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 19:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361962#M9598</guid>
      <dc:creator>sai_phaneendra</dc:creator>
      <dc:date>2015-06-02T19:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to minimize and maximize widget ?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361963#M9599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's an issue that panelManager.minimizePanel() doesn't work, we'll fix it in next release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About how to minimize/maximize widget/panel programmatically?&lt;/P&gt;&lt;P&gt;You can have a look at the minimizeWidget() function in widgetManager, it's very simple. It just change the widget's window state and call widget's onMinimize() function. So, it's widget's job to minimize itself in it's onMinimize() function. Panel has the similar design pattern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For off-panel widget, you should use widgetManager.minimizeWidget(widgetId);&lt;/P&gt;&lt;P&gt;For in-panel widget, you should use panelManager.minimizePanel(panelId);&lt;/P&gt;&lt;P&gt;&amp;nbsp; panelId=widgetId + '_panel', you can also use widget.getPanel() to get widget's panel in next release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 06:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-minimize-and-maximize-widget/m-p/361963#M9599</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2015-06-03T06:59:49Z</dc:date>
    </item>
  </channel>
</rss>

