<?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: How to customize legend using inside layerList in ArcGIS Api for JS version 4.30 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554162#M86001</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/802478"&gt;@MirzaMuhammadAhsanAli&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Since we have redesigned the layer list to use calcite components you will run into issues trying to modify things with CSS like the codepen is trying to do.&amp;nbsp; This is because the components are encapsulated within shadow dom.&lt;/P&gt;
&lt;P&gt;You can create a new Legend for the list item panel content without using the "legend" string and set any of the properties on the Legend you would like.&amp;nbsp; In this case I set the icon to be the information icon.&amp;nbsp; I modified your original codepen.&amp;nbsp;&lt;A href="https://codepen.io/sagewall/pen/vYojjJE" target="_blank" rel="noopener"&gt;https://codepen.io/sagewall/pen/vYojjJE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;                  listItemCreatedFunction: (event) =&amp;gt; {
                    const item = event.item;
                    if (item.layer.type != "group") {
                        item.panel = {
                            content: new Legend({
                              icon: "information",
                              view
                            }),
                            open: false,
                        };
                    }
                }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also set the&lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir" target="_self"&gt; dir attribute&lt;/A&gt; on the body or a containing html element to switch the text direction.&amp;nbsp; This will move the actions over to the left hand side of the layer list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;body dir="rtl"&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 12:25:43 GMT</pubDate>
    <dc:creator>Sage_Wall</dc:creator>
    <dc:date>2024-10-31T12:25:43Z</dc:date>
    <item>
      <title>How to customize legend using inside layerList in ArcGIS Api for JS version 4.30</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554145#M86000</link>
      <description>&lt;P&gt;Hello Everyone,&lt;BR /&gt;&lt;BR /&gt;I am using ArcGIS Api for JS version 4.30.&lt;BR /&gt;&lt;BR /&gt;I am using legend inside LayerList widget, I want to customize the icon and its position that open the legend for the layer, Is there any method to customize the layerlist and legend widget.&amp;nbsp;&lt;BR /&gt;Here is my code&lt;BR /&gt;&lt;A href="https://codepen.io/m-ahsan-ali/pen/ZEgoxPJ?editors=1000" target="_blank" rel="noopener"&gt;https://codepen.io/m-ahsan-ali/pen/ZEgoxPJ?editors=1000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Anybody, that can help me to customize the widgets, i want to move the icon that opens the legend from right end to left end, and change the icon to. Also attaching the Screenshot of current output.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 11:33:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554145#M86000</guid>
      <dc:creator>MirzaMuhammadAhsanAli</dc:creator>
      <dc:date>2024-10-31T11:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize legend using inside layerList in ArcGIS Api for JS version 4.30</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554162#M86001</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/802478"&gt;@MirzaMuhammadAhsanAli&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Since we have redesigned the layer list to use calcite components you will run into issues trying to modify things with CSS like the codepen is trying to do.&amp;nbsp; This is because the components are encapsulated within shadow dom.&lt;/P&gt;
&lt;P&gt;You can create a new Legend for the list item panel content without using the "legend" string and set any of the properties on the Legend you would like.&amp;nbsp; In this case I set the icon to be the information icon.&amp;nbsp; I modified your original codepen.&amp;nbsp;&lt;A href="https://codepen.io/sagewall/pen/vYojjJE" target="_blank" rel="noopener"&gt;https://codepen.io/sagewall/pen/vYojjJE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;                  listItemCreatedFunction: (event) =&amp;gt; {
                    const item = event.item;
                    if (item.layer.type != "group") {
                        item.panel = {
                            content: new Legend({
                              icon: "information",
                              view
                            }),
                            open: false,
                        };
                    }
                }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also set the&lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir" target="_self"&gt; dir attribute&lt;/A&gt; on the body or a containing html element to switch the text direction.&amp;nbsp; This will move the actions over to the left hand side of the layer list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;body dir="rtl"&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 12:25:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554162#M86001</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-10-31T12:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize legend using inside layerList in ArcGIS Api for JS version 4.30</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554165#M86003</link>
      <description>&lt;P&gt;Thank you Sage_Wali for your response.&lt;BR /&gt;&lt;BR /&gt;Can you please tell me can I use arrow icon for the legend toggler and for the position of this icon i want to change the position of this icon only like just before the check box.&lt;BR /&gt;&lt;BR /&gt;Again thank you for help.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 12:25:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554165#M86003</guid>
      <dc:creator>MirzaMuhammadAhsanAli</dc:creator>
      <dc:date>2024-10-31T12:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize legend using inside layerList in ArcGIS Api for JS version 4.30</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554171#M86004</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;, I have changed the icon for the Legend toggler, Can you help me in changing the position of the toggler?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 12:36:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554171#M86004</guid>
      <dc:creator>MirzaMuhammadAhsanAli</dc:creator>
      <dc:date>2024-10-31T12:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize legend using inside layerList in ArcGIS Api for JS version 4.30</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554179#M86005</link>
      <description>&lt;P&gt;Great to hear you got the icon,&lt;/P&gt;
&lt;P&gt;I'm sorry, I don't know of any supported way to move only the action that opens the content over to the other side. Setting the rtl on the body switches a lot more than just the actions position. If I think of something or find out otherwise I'll be sure to update.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 13:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554179#M86005</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-10-31T13:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize legend using inside layerList in ArcGIS Api for JS version 4.30</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554195#M86006</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;, Thank You!&lt;BR /&gt;There is another issue i am facing, I have to use API version 4.27, but&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;visibilityAppearance&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"checkbox" is intoduced in verion 4.29 to show the checkbox instead of eyetoggle, Is there any method to use checkboxes in api version 4.27 for selecting layers in layerlist.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 31 Oct 2024 13:10:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554195#M86006</guid>
      <dc:creator>MirzaMuhammadAhsanAli</dc:creator>
      <dc:date>2024-10-31T13:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize legend using inside layerList in ArcGIS Api for JS version 4.30</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554210#M86007</link>
      <description>&lt;P&gt;Not any officially supported way, however before we started using web components and added the visibilityAppearance property to allow for the checkboxes users were having success by adding some custom css rules.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-widget-with-check-boxes/m-p/85090#M7683" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-widget-with-check-boxes/m-p/85090#M7683&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 13:22:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554210#M86007</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-10-31T13:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to customize legend using inside layerList in ArcGIS Api for JS version 4.30</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554596#M86015</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/507049"&gt;@Sage_Wall&lt;/a&gt;&amp;nbsp;, Thank you very much for your support, its fixed.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 04:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-customize-legend-using-inside-layerlist-in/m-p/1554596#M86015</guid>
      <dc:creator>MirzaMuhammadAhsanAli</dc:creator>
      <dc:date>2024-11-01T04:55:46Z</dc:date>
    </item>
  </channel>
</rss>

