<?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: Have widget update app subtitle in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/have-widget-update-app-subtitle/m-p/1135827#M21819</link>
    <description>&lt;P&gt;Thanks Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The inspection of the subtitle shows basically the same as yours.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;h2 class="jimu-subtitle jimu-float-leading jimu-leading-margin5" data-dojo-attach-point="subtitleNode" id="jimuUniqName_fff752ca_2251_9d00_5896_abf840b08962_2" style="line-height: 50px; display: block;"&amp;gt;with ArcGIS Web AppBuilder&amp;lt;/h2&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running the following code returns:&amp;nbsp;appSubTitleNode: undefined&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var appSubTitleNode = query('.jimu-subtitle.jimu-float-leading')[0];
console.log("appSubTitleNode: ", appSubTitleNode)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This is being called from our MapLoad Widget after the new map has been successfully loaded.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 15:23:38 GMT</pubDate>
    <dc:creator>LanceCole</dc:creator>
    <dc:date>2022-01-21T15:23:38Z</dc:date>
    <item>
      <title>Have widget update app subtitle</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/have-widget-update-app-subtitle/m-p/1135676#M21817</link>
      <description>&lt;P&gt;We have a widget that loads a different map from AGOL to the a custom Web AppBuilder app based upon a customized foldable theme. &amp;nbsp;The widget works great; however, we would like to change the subtitle of the app based upon the loaded map. &amp;nbsp;I am having trouble figuring out how to access the header widget from the map loader widget. &amp;nbsp;I tried to use&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;approach in&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-web-appbuilder-questions/change-subtitle-text-from-a-widget/m-p/606456" target="_self"&gt;Change Subtitle Text from a Widget&lt;/A&gt;&amp;nbsp;but the query cannot resolve &amp;nbsp;“.jimu-subtitle.jimu-float-leading”from the map loader widget.&amp;nbsp;&lt;SPAN&gt;I can update this.appConfig.subtitle to the new value but cannot get the header widget to pickup the new value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any direction and input would be appreciated. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 22:43:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/have-widget-update-app-subtitle/m-p/1135676#M21817</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2022-01-20T22:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Have widget update app subtitle</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/have-widget-update-app-subtitle/m-p/1135816#M21818</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/201429"&gt;@LanceCole&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if that css query is not working then you have to find out what are the classes applied to your apps subtitle. To do that you can right click on the apps subtitle and choose inspect. It will look something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;h2 class="jimu-subtitle jimu-float-leading jimu-leading-margin5" data-dojo-attach-point="subtitleNode" id="jimuUniqName_3a452e20_256f_8d5f_03c5_14ade087e765_2" style="line-height: 40px; display: block;"&amp;gt;with ArcGIS Web AppBuilder&amp;lt;/h2&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Notice class="&lt;SPAN&gt;jimu-subtitle jimu-float-leading jimu-leading-margin5"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So in my case above this code would work:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var appSubTitleNode = query('.jimu-subtitle.jimu-float-leading')[0]; &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 21 Jan 2022 15:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/have-widget-update-app-subtitle/m-p/1135816#M21818</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2022-01-21T15:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Have widget update app subtitle</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/have-widget-update-app-subtitle/m-p/1135827#M21819</link>
      <description>&lt;P&gt;Thanks Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The inspection of the subtitle shows basically the same as yours.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;h2 class="jimu-subtitle jimu-float-leading jimu-leading-margin5" data-dojo-attach-point="subtitleNode" id="jimuUniqName_fff752ca_2251_9d00_5896_abf840b08962_2" style="line-height: 50px; display: block;"&amp;gt;with ArcGIS Web AppBuilder&amp;lt;/h2&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running the following code returns:&amp;nbsp;appSubTitleNode: undefined&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var appSubTitleNode = query('.jimu-subtitle.jimu-float-leading')[0];
console.log("appSubTitleNode: ", appSubTitleNode)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This is being called from our MapLoad Widget after the new map has been successfully loaded.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 15:23:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/have-widget-update-app-subtitle/m-p/1135827#M21819</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2022-01-21T15:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Have widget update app subtitle</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/have-widget-update-app-subtitle/m-p/1135853#M21820</link>
      <description>&lt;P&gt;It was a scope issue pertaining to how the new map is loaded.&amp;nbsp; Robert's code worked fine, as usual, once moved to a point that had appropriate scope.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 16:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/have-widget-update-app-subtitle/m-p/1135853#M21820</guid>
      <dc:creator>LanceCole</dc:creator>
      <dc:date>2022-01-21T16:16:39Z</dc:date>
    </item>
  </channel>
</rss>

