<?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 hide a widget icon on the toolbar? in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667553#M19639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I create such a widget that will pop out when it is needed.&amp;nbsp; If so, I don't want to have it on the toolbar.&amp;nbsp; Can I just set icon="" in the config.xml?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2012 18:02:48 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2012-07-12T18:02:48Z</dc:date>
    <item>
      <title>How to hide a widget icon on the toolbar?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667553#M19639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I create such a widget that will pop out when it is needed.&amp;nbsp; If so, I don't want to have it on the toolbar.&amp;nbsp; Can I just set icon="" in the config.xml?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 18:02:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667553#M19639</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2012-07-12T18:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a widget icon on the toolbar?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667554#M19640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shaning&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try placing the widget in the UI area of your config&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 18:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667554#M19640</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-07-12T18:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a widget icon on the toolbar?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667555#M19641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shaning,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Hooray... This question is in the right forum. No you can not just exclude the widget icon because a default icon will be used. You will have to make changes to the HeaderControllerWidget.mxml to exclude your specific widget from being added. If you look at the getWidgetItems function you can add code to check if the widget label == yourwidget and if so then use the continue statement to jump to the next item.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow the steps&lt;/STRONG&gt;&lt;SPAN&gt; as shown in the below graphic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg"&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 18:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667555#M19641</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-07-12T18:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a widget icon on the toolbar?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667556#M19642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for your multiple times of advices and help.&amp;nbsp; Solute to your great contributions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shaning&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 19:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667556#M19642</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2012-07-12T19:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a widget icon on the toolbar?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667557#M19643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shaning&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried this solution and it works fine with no need for coding if you are using the compiled code &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Shaning&lt;BR /&gt;&lt;BR /&gt;Try placing the widget in the UI area of your config&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Anthony&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 15:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667557#M19643</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-07-13T15:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a widget icon on the toolbar?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667558#M19644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anthony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Does this not force the widget to automatically be loaded at startup though?.. If you want to open the widget from code based on some user click than adding it as a UI element is not the best route.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If I create such a widget that will pop out when it is needed.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 15:08:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667558#M19644</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-07-13T15:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a widget icon on the toolbar?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667559#M19645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes it does, mis-read original post just thought the widget wanted to be open at start up with no icon in the banner&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 15:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667559#M19645</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2012-07-13T15:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a widget icon on the toolbar?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667560#M19646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used Robert's approach to add the following code in getWidgetItems(widgetList:Array)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (widgetItem.label.toString() ! = "Find An Address") {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; widgetItem.open = widgetList&lt;I&gt;.preload &amp;amp;&amp;amp; (widgetList&lt;I&gt;.preload == "open" || widgetList&lt;I&gt;.preload == "minimized");&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; menuItems.addItem(widgetItem);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works well&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 14:42:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/how-to-hide-a-widget-icon-on-the-toolbar/m-p/667560#M19646</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2012-07-18T14:42:32Z</dc:date>
    </item>
  </channel>
</rss>

