<?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 Multiple child panels in LayerTree widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-child-panels-in-layertree-widget/m-p/1373829#M83439</link>
    <description>&lt;P&gt;According to documentation (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#listItemCreatedFunction" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#listItemCreatedFunction&lt;/A&gt;) using listItemCreatedFunction I can add additional child panels to each layer listItem.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Use this function to add actions and &lt;STRONG&gt;panels&lt;/STRONG&gt; to list items, and to override the default settings of a list item&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It is working for single panel, How can I add multiple panels activated from different buttons? Something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen.png" style="width: 386px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92614iDA859FF48A3E1780/image-size/large?v=v2&amp;amp;px=999" role="button" title="screen.png" alt="screen.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;listItemCreatedFunction(event: any) {
  const item = event.item;
  const slider = new Slider(..);
  item.panel = {
    content: slider,
    className: "esri-icon-sliders-horizontal",
    title: "Change layer opacity"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;I know I can add multiple elements in panel.content attribute but that is not that I want. I want different buttons that activates different panels. Alternatively thare can be single panel with hidden content depending on clicked button - but still I am not able to add multiple buttons in ListItem.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 11:18:39 GMT</pubDate>
    <dc:creator>patryks</dc:creator>
    <dc:date>2024-01-24T11:18:39Z</dc:date>
    <item>
      <title>Multiple child panels in LayerTree widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-child-panels-in-layertree-widget/m-p/1373829#M83439</link>
      <description>&lt;P&gt;According to documentation (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#listItemCreatedFunction" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#listItemCreatedFunction&lt;/A&gt;) using listItemCreatedFunction I can add additional child panels to each layer listItem.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Use this function to add actions and &lt;STRONG&gt;panels&lt;/STRONG&gt; to list items, and to override the default settings of a list item&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It is working for single panel, How can I add multiple panels activated from different buttons? Something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen.png" style="width: 386px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92614iDA859FF48A3E1780/image-size/large?v=v2&amp;amp;px=999" role="button" title="screen.png" alt="screen.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;listItemCreatedFunction(event: any) {
  const item = event.item;
  const slider = new Slider(..);
  item.panel = {
    content: slider,
    className: "esri-icon-sliders-horizontal",
    title: "Change layer opacity"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;I know I can add multiple elements in panel.content attribute but that is not that I want. I want different buttons that activates different panels. Alternatively thare can be single panel with hidden content depending on clicked button - but still I am not able to add multiple buttons in ListItem.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 11:18:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/multiple-child-panels-in-layertree-widget/m-p/1373829#M83439</guid>
      <dc:creator>patryks</dc:creator>
      <dc:date>2024-01-24T11:18:39Z</dc:date>
    </item>
  </channel>
</rss>

