<?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: Change title text on arcgis-layer-list component in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1616517#M87179</link>
    <description>&lt;P&gt;`arcgisReady` and `componentOnReady()` should fire off when all the publicly documented stuff is ready but we're venturing into the undocumented here&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;.&amp;nbsp; &amp;nbsp;I'm glad you figured something out though.&lt;/P&gt;&lt;P&gt;Just thinking about this a little more another option would be to wrap your `arcgis-layer-list` in a `calcite-block` or `calcite-panel`.&amp;nbsp; Then if you turn off the header in the layer list you could add whatever you wanted as the heading in the calcite component.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/zxxVdam" target="_blank"&gt;https://codepen.io/sagewall/pen/zxxVdam&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 May 2025 16:03:23 GMT</pubDate>
    <dc:creator>Sage_Wall</dc:creator>
    <dc:date>2025-05-20T16:03:23Z</dc:date>
    <item>
      <title>Change title text on arcgis-layer-list component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1613354#M87123</link>
      <description>&lt;P&gt;I'm trying to change the top level text on the arcgis-layer-list component from 'Layer List' to 'Anything else' and can't figure out how to do it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PeterK_0-1746812299649.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131907i4E2B7D776D6A819A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PeterK_0-1746812299649.png" alt="PeterK_0-1746812299649.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't see any properties other than 'label' which don't do it.&amp;nbsp; I've tried using Jquery to find the header tag elements and also tried searching for "heading" class and I can't seem to get to it.&amp;nbsp; I'm new to the calcite framework so I'm wondering what I'm missing.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 17:41:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1613354#M87123</guid>
      <dc:creator>PeterK</dc:creator>
      <dc:date>2025-05-09T17:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change title text on arcgis-layer-list component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1613669#M87129</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/399194"&gt;@PeterK&lt;/a&gt;&amp;nbsp;, this isn't currently possible, but I can see that it would be better if it were.&amp;nbsp; We'll take this under consideration and possibly add a property to set the header text in the future.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 15:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1613669#M87129</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-05-12T15:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change title text on arcgis-layer-list component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1613681#M87131</link>
      <description>&lt;P&gt;Thanks for the clarification, being new to web components I wasn't sure if I was missing some way to access the text.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 15:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1613681#M87131</guid>
      <dc:creator>PeterK</dc:creator>
      <dc:date>2025-05-12T15:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change title text on arcgis-layer-list component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1616475#M87178</link>
      <description>&lt;P&gt;I was able to change the title text on the Layer List using the following method.&amp;nbsp; I'm not sure if this is the way to interact with web components but it seems to work.&lt;/P&gt;&lt;P&gt;Markup:&lt;/P&gt;&lt;P&gt;&amp;lt;arcgis-map basemap="arcgis/topographic" center="-111, 33" zoom="13" &amp;gt;&lt;BR /&gt;&amp;lt;arcgis-layer-list position="top-right" show-collapse-button show-heading visibility-appearance="checkbox" icon="legend-plus"&amp;gt;&amp;lt;/arcgis-layer-list&amp;gt;&lt;BR /&gt;&amp;lt;/arcgis-map&amp;gt;&lt;/P&gt;&lt;P&gt;In require block:&lt;/P&gt;&lt;P&gt;setTimeout(function () {&lt;BR /&gt;const theLayerListHeader = document.querySelectorAll("calcite-flow-item")[0].shadowRoot.querySelectorAll('calcite-panel')[0].shadowRoot.querySelector('h2');&lt;BR /&gt;theLayerListHeader.innerText = 'Legend'&lt;BR /&gt;theLayerListHeader.style.fontSize = '17px';&lt;BR /&gt;}, 1000)&lt;/P&gt;&lt;P&gt;I tried using the argisReady event and onComponentReady promise methods but the layer list was not fully loaded as far as I could tell, so I fell back to a setTimeout block.&amp;nbsp; Many of the arcgisReady and onComponent methods don't seem to have a fully ready component, bit I may be missing something.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 14:55:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1616475#M87178</guid>
      <dc:creator>PeterK</dc:creator>
      <dc:date>2025-05-20T14:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change title text on arcgis-layer-list component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1616517#M87179</link>
      <description>&lt;P&gt;`arcgisReady` and `componentOnReady()` should fire off when all the publicly documented stuff is ready but we're venturing into the undocumented here&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;.&amp;nbsp; &amp;nbsp;I'm glad you figured something out though.&lt;/P&gt;&lt;P&gt;Just thinking about this a little more another option would be to wrap your `arcgis-layer-list` in a `calcite-block` or `calcite-panel`.&amp;nbsp; Then if you turn off the header in the layer list you could add whatever you wanted as the heading in the calcite component.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/sagewall/pen/zxxVdam" target="_blank"&gt;https://codepen.io/sagewall/pen/zxxVdam&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 16:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1616517#M87179</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-05-20T16:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change title text on arcgis-layer-list component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1616522#M87180</link>
      <description>&lt;P&gt;That works too, thanks for the alternate solution!&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 16:27:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/change-title-text-on-arcgis-layer-list-component/m-p/1616522#M87180</guid>
      <dc:creator>PeterK</dc:creator>
      <dc:date>2025-05-20T16:27:38Z</dc:date>
    </item>
  </channel>
</rss>

