<?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 change a widget title at runtime in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-change-a-widget-title-at-runtime/m-p/773587#M1851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to change the title of a widget dynamically at runtime? I would like to prepend additional information after the existing title. For example if my widget title is "ABC" I would like to prepend "ABC: 123".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2016 22:17:41 GMT</pubDate>
    <dc:creator>GregRieck</dc:creator>
    <dc:date>2016-12-02T22:17:41Z</dc:date>
    <item>
      <title>How to change a widget title at runtime</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-change-a-widget-title-at-runtime/m-p/773587#M1851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to change the title of a widget dynamically at runtime? I would like to prepend additional information after the existing title. For example if my widget title is "ABC" I would like to prepend "ABC: 123".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 22:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-change-a-widget-title-at-runtime/m-p/773587#M1851</guid>
      <dc:creator>GregRieck</dc:creator>
      <dc:date>2016-12-02T22:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a widget title at runtime</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-change-a-widget-title-at-runtime/m-p/773588#M1852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;This is thread is not for changing the widget title but the same exact principle applies:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/170015"&gt;https://community.esri.com/thread/170015&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 22:28:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-change-a-widget-title-at-runtime/m-p/773588#M1852</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-02T22:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a widget title at runtime</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-change-a-widget-title-at-runtime/m-p/773589#M1853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for responding. Yeah, that's not it. That changes the title of the title bar of the application. What I'm looking for is to change the title of the "widget" at runtime. Inside the widget path /nls/string.js I have the below. I am wanting to change the widgetTitle to&amp;nbsp;&lt;SPAN&gt;My Widget: "SOME ADDITIONAL TEXT" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define({&lt;BR /&gt; root: {&lt;BR /&gt; widgetTitle: 'My Widget',&lt;BR /&gt; _featureAction_&lt;SPAN&gt;MyWidget&lt;/SPAN&gt;: "&lt;SPAN&gt;My Widget&lt;/SPAN&gt;",&lt;BR /&gt; description: 'A custom widget.'&lt;BR /&gt; }&lt;BR /&gt; // add supported locales below:&lt;BR /&gt; // , "zh-cn": true&lt;BR /&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 23:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-change-a-widget-title-at-runtime/m-p/773589#M1853</guid>
      <dc:creator>GregRieck</dc:creator>
      <dc:date>2016-12-02T23:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a widget title at runtime</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-change-a-widget-title-at-runtime/m-p/773590#M1854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Greg,&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; Yes, I guess you missed the part where I said the concept would be the same. You just have to do the proper query for the widgets title.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2016 16:43:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-change-a-widget-title-at-runtime/m-p/773590#M1854</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-03T16:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a widget title at runtime</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-change-a-widget-title-at-runtime/m-p/773591#M1855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So if you want to change the widgets title from inside the widgets code you would use:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getPanel&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;titleLabelNode&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;innerHTML &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"blah blah"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 14:53:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-to-change-a-widget-title-at-runtime/m-p/773591#M1855</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-09T14:53:06Z</dc:date>
    </item>
  </channel>
</rss>

