<?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: add class / data-attribute to graphic dom node 4.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-class-data-attribute-to-graphic-dom-node-4-x/m-p/608333#M56893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I would not go that route. You can just assign a year attribute to the graphics and then loop through the graphics to find those with attribute year equal to your desired value and then remove that graphic and add back to the GL using the different symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 May 2017 14:56:33 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-05-01T14:56:33Z</dc:date>
    <item>
      <title>add class / data-attribute to graphic dom node 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-class-data-attribute-to-graphic-dom-node-4-x/m-p/608332#M56892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for a way to change the style of certain graphics based on user interaction. I have a bar chart in my application and when the user hovers over, for example, the 2015 bar, I want to highlight all the points on the map that occurred in 2015. I thought the best way to do this would be to add a data-year attribute to the graphic's dom node and use some CSS similar to&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jshelp/inside_styling_svg.html" title="https://developers.arcgis.com/javascript/3/jshelp/inside_styling_svg.html"&gt;Styling SVG with CSS | Guide | ArcGIS API for JavaScript 3.20&lt;/A&gt;. &amp;nbsp;But I see in&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/functionality-matrix/index.html" title="https://developers.arcgis.com/javascript/latest/guide/functionality-matrix/index.html"&gt;Functionality matrix | ArcGIS API for JavaScript 4.3&lt;/A&gt;&amp;nbsp; that the dataAttributes method is "Not planned". Is there a way to do this at 4.x?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classes and CSS styling is used at 4.3 here:&amp;nbsp;&lt;A href="https://github.com/nickcam/FlareClusterLayer"&gt;https://github.com/nickcam/FlareClusterLayer&lt;/A&gt;&amp;nbsp;so it seems like it should be possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 14:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-class-data-attribute-to-graphic-dom-node-4-x/m-p/608332#M56892</guid>
      <dc:creator>BrandonFlessner</dc:creator>
      <dc:date>2017-05-01T14:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: add class / data-attribute to graphic dom node 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-class-data-attribute-to-graphic-dom-node-4-x/m-p/608333#M56893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I would not go that route. You can just assign a year attribute to the graphics and then loop through the graphics to find those with attribute year equal to your desired value and then remove that graphic and add back to the GL using the different symbol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 14:56:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-class-data-attribute-to-graphic-dom-node-4-x/m-p/608333#M56893</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-05-01T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: add class / data-attribute to graphic dom node 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-class-data-attribute-to-graphic-dom-node-4-x/m-p/608334#M56894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply Robert. I was hoping to use some CSS to add some animation and transition effects but your method is likely the best and easiest option for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 15:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-class-data-attribute-to-graphic-dom-node-4-x/m-p/608334#M56894</guid>
      <dc:creator>BrandonFlessner</dc:creator>
      <dc:date>2017-05-01T15:03:26Z</dc:date>
    </item>
  </channel>
</rss>

