<?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: use of home component in a calcite-action-bar in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-of-home-component-in-a-calcite-action-bar/m-p/1622922#M87252</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;&amp;nbsp;This was one of my concerns when adopting web components, too. Thankfully, the Home component follows the same pattern that many of the web components follow:&lt;/P&gt;&lt;P&gt;You can set the "reference-element" property on the Home component to point to the "id" of the &amp;lt;arcgis-map&amp;gt; component. This will let you place the Home component wherever you want in the DOM, while still linking it to the view inside the Map component.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-shell&amp;gt;
  &amp;lt;calcite-shell-panel slot="panel-start"&amp;gt;
    &amp;lt;calcite-action-bar slot="action-bar"&amp;gt;
      &amp;lt;calcite-action-group&amp;gt;
        &amp;lt;!--  Use &amp;lt;arcgis-home&amp;gt; with reference-element pointing to &amp;lt;arcgis-map&amp;gt;   --&amp;gt;
        &amp;lt;arcgis-home reference-element="my-map"&amp;gt;&amp;lt;/arcgis-home&amp;gt;
      &amp;lt;/calcite-action-group&amp;gt;
    &amp;lt;/calcite-action-bar&amp;gt;
  &amp;lt;/calcite-shell-panel&amp;gt;
  
  &amp;lt;arcgis-map id="my-map" item-id="45b3b2fb35e94ab09381d0caa0da5946"&amp;gt;&amp;lt;/arcgis-map&amp;gt;
&amp;lt;/calcite-shell&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this codepen for a complete example:&amp;nbsp;&lt;A href="https://codepen.io/fdeters/pen/Pwqewwa" target="_blank" rel="noopener"&gt;https://codepen.io/fdeters/pen/Pwqewwa&lt;/A&gt;. The styling doesn't quite work how I would expect it to out of the box, but some CSS could probably get it to work right.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 00:17:00 GMT</pubDate>
    <dc:creator>fdeters</dc:creator>
    <dc:date>2025-06-12T00:17:00Z</dc:date>
    <item>
      <title>use of home component in a calcite-action-bar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-of-home-component-in-a-calcite-action-bar/m-p/1622872#M87249</link>
      <description>&lt;P&gt;I'm using ArcGIS JS API 4.32 and currently converting the app's widgets into components.&lt;/P&gt;&lt;P&gt;The app includes a calcite-action-bar on the left side, and I've been successfully integrating components like the LayerList, Legend, and others.&lt;/P&gt;&lt;P&gt;Most conversions have been straightforward, except for the Home component.&lt;/P&gt;&lt;P&gt;Integrating the Home component into the action bar has been challenging, as it interacts directly with the map view, making it less adaptable to the component-based structure.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the current setup.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;calcite-shell-panel id="primary-shell-panel" slot="panel-start"&amp;gt;

            &amp;lt;calcite-action-bar slot="action-bar" expand-disabled id="action-bar-left"&amp;gt;
                &amp;lt;calcite-action-group&amp;gt;
                    &amp;lt;calcite-action data-action-id="home" id="home" text="Home" icon="home"&amp;gt;&amp;lt;/calcite-action&amp;gt;
                    &amp;lt;calcite-action data-action-id="previous" id="previous" text="Previous Extent" icon="arrow-left"&amp;gt;
                    &amp;lt;/calcite-action&amp;gt;
                    &amp;lt;calcite-action data-action-id="next" id="next" text="Next Extent" icon="arrow-right"&amp;gt;
                    &amp;lt;/calcite-action&amp;gt;
                &amp;lt;/calcite-action-group&amp;gt;
                &amp;lt;calcite-action-group&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;How can I use the home component in the action bar?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;arcgis-map item-id="45b3b2fb35e94ab09381d0caa0da5946"&amp;gt;
  &amp;lt;arcgis-home position="top-left"&amp;gt;&amp;lt;/arcgis-home&amp;gt;
&amp;lt;/arcgis-map&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LefterisKoumis_0-1749675554647.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134242i8F6B1322B5E090D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LefterisKoumis_0-1749675554647.png" alt="LefterisKoumis_0-1749675554647.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/115266"&gt;@AnneFitz&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 20:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-of-home-component-in-a-calcite-action-bar/m-p/1622872#M87249</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2025-06-11T20:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: use of home component in a calcite-action-bar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-of-home-component-in-a-calcite-action-bar/m-p/1622922#M87252</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/14521"&gt;@LefterisKoumis&lt;/a&gt;&amp;nbsp;This was one of my concerns when adopting web components, too. Thankfully, the Home component follows the same pattern that many of the web components follow:&lt;/P&gt;&lt;P&gt;You can set the "reference-element" property on the Home component to point to the "id" of the &amp;lt;arcgis-map&amp;gt; component. This will let you place the Home component wherever you want in the DOM, while still linking it to the view inside the Map component.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-shell&amp;gt;
  &amp;lt;calcite-shell-panel slot="panel-start"&amp;gt;
    &amp;lt;calcite-action-bar slot="action-bar"&amp;gt;
      &amp;lt;calcite-action-group&amp;gt;
        &amp;lt;!--  Use &amp;lt;arcgis-home&amp;gt; with reference-element pointing to &amp;lt;arcgis-map&amp;gt;   --&amp;gt;
        &amp;lt;arcgis-home reference-element="my-map"&amp;gt;&amp;lt;/arcgis-home&amp;gt;
      &amp;lt;/calcite-action-group&amp;gt;
    &amp;lt;/calcite-action-bar&amp;gt;
  &amp;lt;/calcite-shell-panel&amp;gt;
  
  &amp;lt;arcgis-map id="my-map" item-id="45b3b2fb35e94ab09381d0caa0da5946"&amp;gt;&amp;lt;/arcgis-map&amp;gt;
&amp;lt;/calcite-shell&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this codepen for a complete example:&amp;nbsp;&lt;A href="https://codepen.io/fdeters/pen/Pwqewwa" target="_blank" rel="noopener"&gt;https://codepen.io/fdeters/pen/Pwqewwa&lt;/A&gt;. The styling doesn't quite work how I would expect it to out of the box, but some CSS could probably get it to work right.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 00:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-of-home-component-in-a-calcite-action-bar/m-p/1622922#M87252</guid>
      <dc:creator>fdeters</dc:creator>
      <dc:date>2025-06-12T00:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: use of home component in a calcite-action-bar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-of-home-component-in-a-calcite-action-bar/m-p/1623091#M87253</link>
      <description>&lt;P&gt;You can add an&amp;nbsp;&lt;FONT face="courier new,courier"&gt;arcgis-home { margin: 10px; }&lt;/FONT&gt;&amp;nbsp;and it will place it correctly in the action bar. It's still has a button width/height that is different on hover, but aligns right.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-of-home-component-in-a-calcite-action-bar/m-p/1623091#M87253</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-06-12T15:55:12Z</dc:date>
    </item>
  </channel>
</rss>

