<?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 Possible to hide widget from header controller? in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/possible-to-hide-widget-from-header-controller/m-p/524290#M14539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to configure a widget so that it does not display in the header controller? I would like to have a widget that can only be opened from another widget (instead of clicking the widget's icon on the header controller).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to configure a widget with the other default ones (like NavigationWidget, OverviewWidget), but doing this will cause the widget to be preloaded automatically (regardless of what value I put in the preload attribute).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not 100% sure that I actually need to configure a widget in the config.xml file, but the only way I know how to load one manually is through the widgetManager, which requires a configuration entry. If there is a way to load a widget without configuring it, I will be able to bypass the aforementioned issues. For reference, this is the code I am using to load:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;widgetManager.getWidget(widgetManager.getWidgetId("My ID"), true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, in summary:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to configure a widget without it displaying in the header controller and not having it automatically preload?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, is there a way to load a widget without having to configure it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your time. Any help is greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2011 14:39:18 GMT</pubDate>
    <dc:creator>MichaelOberegger</dc:creator>
    <dc:date>2011-12-07T14:39:18Z</dc:date>
    <item>
      <title>Possible to hide widget from header controller?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/possible-to-hide-widget-from-header-controller/m-p/524290#M14539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to configure a widget so that it does not display in the header controller? I would like to have a widget that can only be opened from another widget (instead of clicking the widget's icon on the header controller).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to configure a widget with the other default ones (like NavigationWidget, OverviewWidget), but doing this will cause the widget to be preloaded automatically (regardless of what value I put in the preload attribute).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not 100% sure that I actually need to configure a widget in the config.xml file, but the only way I know how to load one manually is through the widgetManager, which requires a configuration entry. If there is a way to load a widget without configuring it, I will be able to bypass the aforementioned issues. For reference, this is the code I am using to load:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;widgetManager.getWidget(widgetManager.getWidgetId("My ID"), true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, in summary:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to configure a widget without it displaying in the header controller and not having it automatically preload?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, is there a way to load a widget without having to configure it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your time. Any help is greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 14:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/possible-to-hide-widget-from-header-controller/m-p/524290#M14539</guid>
      <dc:creator>MichaelOberegger</dc:creator>
      <dc:date>2011-12-07T14:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to hide widget from header controller?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/possible-to-hide-widget-from-header-controller/m-p/524291#M14540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The simplest way is to edit the HeaderControllerWidget.mxml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function getWidgetItems(widgetList:Array):ArrayCollection
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var menuItems:ArrayCollection = new ArrayCollection;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var widgetItem:WidgetItem;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i:int = 0; i &amp;lt; widgetList.length; )
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&lt;SPAN style="color:Red;"&gt;&lt;STRONG&gt;//If widgetList Item label equals the widget you want to eliminate
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(widgetList&lt;I&gt;.label == "Your widget Label")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; continue;
//End of additional code&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/possible-to-hide-widget-from-header-controller/m-p/524291#M14540</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T22:51:16Z</dc:date>
    </item>
  </channel>
</rss>

