<?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: Override widget texts in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-widget-texts/m-p/1284286#M81009</link>
    <description>&lt;P&gt;I'm not aware of a way to do override it using a method similar to the 3.x API, but the tooltip on the search button is controlled by the title attribute, so you could do a querySelector for the .esri-search__submit-button class and change the title attribute.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;button aria-label="Search" class="esri-search__submit-button esri-widget--button" title="Search" type="button"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        searchWidget.when(() =&amp;gt; {
          setTimeout(() =&amp;gt; {
            searchWidget.container.querySelector('.esri-search__submit-button')?.setAttribute('title', 'Search address');
          }, 500);
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 13:01:26 GMT</pubDate>
    <dc:creator>Justin_Greco</dc:creator>
    <dc:date>2023-05-01T13:01:26Z</dc:date>
    <item>
      <title>Override widget texts</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-widget-texts/m-p/1282918#M80970</link>
      <description>&lt;P&gt;Is there any way to override widget strings in 4.x?&lt;/P&gt;&lt;P&gt;There used to be a way to override in 3.x&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/3/jshelp/inside_bundle.html" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jshelp/inside_bundle.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;However, I don't find equivalent way in 4.x. I understand I can modify the locale to display the translated text but I can't really override it. e.g. Search widget icon displays tooltip "Search" and if I want to override it to "Search Address". Is it possible to override default widget texts?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 16:52:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-widget-texts/m-p/1282918#M80970</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2023-04-26T16:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Override widget texts</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-widget-texts/m-p/1284286#M81009</link>
      <description>&lt;P&gt;I'm not aware of a way to do override it using a method similar to the 3.x API, but the tooltip on the search button is controlled by the title attribute, so you could do a querySelector for the .esri-search__submit-button class and change the title attribute.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;button aria-label="Search" class="esri-search__submit-button esri-widget--button" title="Search" type="button"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        searchWidget.when(() =&amp;gt; {
          setTimeout(() =&amp;gt; {
            searchWidget.container.querySelector('.esri-search__submit-button')?.setAttribute('title', 'Search address');
          }, 500);
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 13:01:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-widget-texts/m-p/1284286#M81009</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2023-05-01T13:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Override widget texts</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-widget-texts/m-p/1284325#M81010</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/233731"&gt;@Justin_Greco&lt;/a&gt;&amp;nbsp;Thanks for replying about it. I thought of overriding by using dom query. I preferred overriding 3.x way so no need to worry about change in the selector class name as well as avoiding extra call. I am not sure why ESRI team has not supported overriding of the texts with 4.x.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 14:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/override-widget-texts/m-p/1284325#M81010</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2023-05-01T14:07:23Z</dc:date>
    </item>
  </channel>
</rss>

