<?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 get selected Theme's Style(Color) in widget  in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-get-selected-theme-s-style-color-in-widget/m-p/376717#M10032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We want to set color of some text in the widget to selected theme's color, is their any way we can get selected Theme's Style(Color) in widget .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2015 14:29:04 GMT</pubDate>
    <dc:creator>SumitZ</dc:creator>
    <dc:date>2015-09-08T14:29:04Z</dc:date>
    <item>
      <title>How to get selected Theme's Style(Color) in widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-get-selected-theme-s-style-color-in-widget/m-p/376717#M10032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We want to set color of some text in the widget to selected theme's color, is their any way we can get selected Theme's Style(Color) in widget .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 14:29:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-get-selected-theme-s-style-color-in-widget/m-p/376717#M10032</guid>
      <dc:creator>SumitZ</dc:creator>
      <dc:date>2015-09-08T14:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get selected Theme's Style(Color) in widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-get-selected-theme-s-style-color-in-widget/m-p/376718#M10033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sumit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sure use this.&lt;/P&gt;&lt;P&gt;requires&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/_base/query',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/dom-style'

&amp;nbsp;&amp;nbsp;&amp;nbsp; dojoQuery,
&amp;nbsp;&amp;nbsp;&amp;nbsp; domStyle

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var node = dojoQuery('.jimu-main-background')[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.info(domStyle.get(node, 'background-color'));&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-get-selected-theme-s-style-color-in-widget/m-p/376718#M10033</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T17:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get selected Theme's Style(Color) in widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-get-selected-theme-s-style-color-in-widget/m-p/376719#M10034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sumit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First,you can access a style array from `this.appConfig`, the first one as the selected style. If there doesn't have styles property, use `default` as default.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/126078_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Second, you should send a request to get the manifest.json of theme manually.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/126079_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;The `styleColor` is you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 02:35:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-get-selected-theme-s-style-color-in-widget/m-p/376719#M10034</guid>
      <dc:creator>ZeZhengLi</dc:creator>
      <dc:date>2015-09-09T02:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get selected Theme's Style(Color) in widget</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-get-selected-theme-s-style-color-in-widget/m-p/376720#M10035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/53387"&gt;ZeZheng Li&lt;/A&gt;​ !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have already tried this and it is working fine.We thought this would be an workaround and will have maintenance impact if any changes in WAB carried out in feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is their any other way by which we can get the selected Style (color), without implementing this workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g.&amp;nbsp; It would be good if WAB provide the selected style(color) along with the style name.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 13:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/how-to-get-selected-theme-s-style-color-in-widget/m-p/376720#M10035</guid>
      <dc:creator>SumitZ</dc:creator>
      <dc:date>2015-09-09T13:45:21Z</dc:date>
    </item>
  </channel>
</rss>

