<?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: LayerList control positioning of &amp;quot;panel&amp;quot; action vs. &amp;quot;actionsSections&amp;quot; actions in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-control-positioning-of-quot-panel-quot/m-p/1613670#M87130</link>
    <description>&lt;P&gt;There currently isn't a way to set the order here.&amp;nbsp; Looking at the screenshot, I agree we need to improve this.&lt;/P&gt;</description>
    <pubDate>Mon, 12 May 2025 15:12:16 GMT</pubDate>
    <dc:creator>Sage_Wall</dc:creator>
    <dc:date>2025-05-12T15:12:16Z</dc:date>
    <item>
      <title>LayerList control positioning of "panel" action vs. "actionsSections" actions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-control-positioning-of-quot-panel-quot/m-p/1613458#M87126</link>
      <description>&lt;P&gt;I'm looking for a way to control the positioning of `LayerListItem` actions when defining them using a `listItemCreatedFunction`. I haven't yet found a way to make the "panel" action render to the right side of the "actionsSections" actions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the example below. I want the "panel" action to render on the rightmost side of the list item, and the "actionsSections" action to render to the left of that. Is there a way to control the order?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;function myListItemCreatedFunction(event) {
  const { item } = event;
  await item.layer.when();

  // it doesn't seem to matter which order these are defined in
  item.actionsSections = [
    [
      {
        title: 'Toggle labels',
        icon: 'label',
        id: 'toggle-labels',
       },
    ],
  ],
  item.panel = {
    content: htmlContent, // some custom content I define elsewhere
    icon: 'handle-vertical',
    title: 'Layer settings',
  },
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, this matters because every layer in the layer list has a `panel` action defined, but not every layer has an `actionsSections` action defined. I end up getting a misaligned set of actions, like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fdeters_0-1746830659929.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/131928i4FE1585167B73AE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fdeters_0-1746830659929.png" alt="fdeters_0-1746830659929.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 22:46:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-control-positioning-of-quot-panel-quot/m-p/1613458#M87126</guid>
      <dc:creator>fdeters</dc:creator>
      <dc:date>2025-05-09T22:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList control positioning of "panel" action vs. "actionsSections" actions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-control-positioning-of-quot-panel-quot/m-p/1613670#M87130</link>
      <description>&lt;P&gt;There currently isn't a way to set the order here.&amp;nbsp; Looking at the screenshot, I agree we need to improve this.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 15:12:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-control-positioning-of-quot-panel-quot/m-p/1613670#M87130</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2025-05-12T15:12:16Z</dc:date>
    </item>
  </channel>
</rss>

