<?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 Re: Change Widget Color When In Use in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-widget-color-when-in-use/m-p/775132#M2028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jamie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would just hold a global "flag" (variable) and switch it on/off when used/unused.&lt;/P&gt;&lt;P&gt;Although, this might need to be injected into the&amp;nbsp;application's js&amp;nbsp;file, to be in the global scope and not a specific widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A cleaner solution would be to create a Dojo module - a separate class, which will hold that flag.&amp;nbsp;Load that module as part of the application and display the color based on the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another idea would be to use Dojo topic module - publish and subscribe to change the color when needed -&amp;nbsp;&lt;A class="link-titled" href="https://dojotoolkit.org/reference-guide/1.10/dojo/topic.html" title="https://dojotoolkit.org/reference-guide/1.10/dojo/topic.html"&gt;https://dojotoolkit.org/reference-guide/1.10/dojo/topic.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there many ways of doing this &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2020 01:39:35 GMT</pubDate>
    <dc:creator>shaylavi</dc:creator>
    <dc:date>2020-07-13T01:39:35Z</dc:date>
    <item>
      <title>Change Widget Color When In Use</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-widget-color-when-in-use/m-p/775131#M2027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to change the color of the widget when something in that widget is being referenced? i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filter Widget --&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Filter Example' --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Widget image turns 'green' to indicate it is in use and stays 'green' when clicked off widget pop-up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense and I hope more there is something that can do this! I was thinking maybe through the config.json maybe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2020 10:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-widget-color-when-in-use/m-p/775131#M2027</guid>
      <dc:creator>JamieHollis</dc:creator>
      <dc:date>2020-07-11T10:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change Widget Color When In Use</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-widget-color-when-in-use/m-p/775132#M2028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jamie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would just hold a global "flag" (variable) and switch it on/off when used/unused.&lt;/P&gt;&lt;P&gt;Although, this might need to be injected into the&amp;nbsp;application's js&amp;nbsp;file, to be in the global scope and not a specific widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A cleaner solution would be to create a Dojo module - a separate class, which will hold that flag.&amp;nbsp;Load that module as part of the application and display the color based on the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another idea would be to use Dojo topic module - publish and subscribe to change the color when needed -&amp;nbsp;&lt;A class="link-titled" href="https://dojotoolkit.org/reference-guide/1.10/dojo/topic.html" title="https://dojotoolkit.org/reference-guide/1.10/dojo/topic.html"&gt;https://dojotoolkit.org/reference-guide/1.10/dojo/topic.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there many ways of doing this &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 01:39:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-widget-color-when-in-use/m-p/775132#M2028</guid>
      <dc:creator>shaylavi</dc:creator>
      <dc:date>2020-07-13T01:39:35Z</dc:date>
    </item>
  </channel>
</rss>

