<?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 Change popup background or title bar color dynamically in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-popup-background-or-title-bar-color/m-p/565528#M52787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: abalder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have three different types of data that are symbolized by three different colors. I would like to have the popup�??s background or title bar color change corresponding to the type of data the user clicks on. For example if the user clicks on a green point I want the background or title bar of the popup to be green. I understand I can change these items via CSS but how does one go about doing this on the fly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 11:46:54 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-04-03T11:46:54Z</dc:date>
    <item>
      <title>Change popup background or title bar color dynamically</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-popup-background-or-title-bar-color/m-p/565528#M52787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: abalder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have three different types of data that are symbolized by three different colors. I would like to have the popup�??s background or title bar color change corresponding to the type of data the user clicks on. For example if the user clicks on a green point I want the background or title bar of the popup to be green. I understand I can change these items via CSS but how does one go about doing this on the fly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 11:46:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-popup-background-or-title-bar-color/m-p/565528#M52787</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-03T11:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change popup background or title bar color dynamically</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-popup-background-or-title-bar-color/m-p/565529#M52788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can dynamically add and remove css classes to elements with dojo... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;require(["dojo/dom-class"], function(domClass){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Add a class to some node:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; domClass.add("someNode", "newClass");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or to remove...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;domClass.remove("someNode", "someClass");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps set these prior to the setFeatures method?&amp;nbsp; Not sure exactly...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Shad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 14:34:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-popup-background-or-title-bar-color/m-p/565529#M52788</guid>
      <dc:creator>ShadCampbell</dc:creator>
      <dc:date>2013-04-03T14:34:39Z</dc:date>
    </item>
  </channel>
</rss>

