<?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: Is it possible to override the new Home button's popup text? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-override-the-new-home-button-s/m-p/42037#M3630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. Hopefully Esri will add an official parameter to the API sometime.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Sep 2013 09:22:42 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2013-09-30T09:22:42Z</dc:date>
    <item>
      <title>Is it possible to override the new Home button's popup text?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-override-the-new-home-button-s/m-p/42035#M3628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The new &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jsapi/homebutton-amd.html" rel="nofollow" target="_blank"&gt;Home button&lt;/A&gt;&lt;SPAN&gt; automatically inserts a div into the page with these values:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; &amp;lt;div class="homeContainer"&amp;gt; &amp;nbsp; &amp;lt;div class="home" data-dojo-attach-event="ondijitclick:home" role="button" title="Default extent" data-dojo-attach-point="_homeNode"&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;span&amp;gt;Home&amp;lt;/span&amp;gt; &amp;nbsp; &amp;lt;/div&amp;gt; &amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to modify the title text ("Default extent")? If not, could we have this added as a parameter during construction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 00:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-override-the-new-home-button-s/m-p/42035#M3628</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2013-09-30T00:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to override the new Home button's popup text?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-override-the-new-home-button-s/m-p/42036#M3629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var djtHomeButton = new HomeButton({
&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map
}, "HomeButton");
djtHomeButton._homeNode.title = "This is the new title";
djtHomeButton.startup();
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:37:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-override-the-new-home-button-s/m-p/42036#M3629</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2021-12-10T21:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to override the new Home button's popup text?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-override-the-new-home-button-s/m-p/42037#M3630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. Hopefully Esri will add an official parameter to the API sometime.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 09:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-override-the-new-home-button-s/m-p/42037#M3630</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2013-09-30T09:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to override the new Home button's popup text?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-override-the-new-home-button-s/m-p/42038#M3631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can change the home button's alt text the same way you change text or a label for any other widget in the API:&amp;nbsp; use dojo/i18n ot load and get a reference to the API's collection of text strings and change widgets.homeButton.home property to be whatever you like. Here's code to do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;require([ &amp;nbsp; "esri/map",&amp;nbsp; &amp;nbsp; "esri/dijit/HomeButton", &amp;nbsp; "dojo/i18n!esri/nls/jsapi", &amp;nbsp; "dojo/domReady!" ], function( &amp;nbsp; Map, HomeButton, esriBundle )&amp;nbsp; { &amp;nbsp; esriBundle.widgets.homeButton.home.title = "Custom home button text.";&amp;nbsp; &amp;nbsp; var map = new Map("map", { &amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-56.049, 38.485], &amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 3, &amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "streets" &amp;nbsp; }); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; var home = new HomeButton({ &amp;nbsp;&amp;nbsp;&amp;nbsp; map: map &amp;nbsp; }, "HomeButton"); &amp;nbsp; home.startup();&amp;nbsp; });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think we currently have this in our docs and we'll get it added.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 11:16:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-override-the-new-home-button-s/m-p/42038#M3631</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2013-09-30T11:16:51Z</dc:date>
    </item>
  </channel>
</rss>

