<?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: Two calcite-shell-panels in same app? Panel not displaying in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/two-calcite-shell-panels-in-same-app-panel-not/m-p/1171670#M136</link>
    <description>&lt;P&gt;I feel so stupid, that is exactly what my problem was! Thanks y'all for such quick responses!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 20:20:57 GMT</pubDate>
    <dc:creator>JustinKirtz1</dc:creator>
    <dc:date>2022-05-06T20:20:57Z</dc:date>
    <item>
      <title>Two calcite-shell-panels in same app? Panel not displaying</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/two-calcite-shell-panels-in-same-app-panel-not/m-p/1171656#M132</link>
      <description>&lt;P&gt;I'm trying to add expandable toolbars on both sides of my map. I've been able to get the toolbars to show up but I'm not able to use the calcite-action buttons to open their respective panel from the second toolbar.&lt;/P&gt;&lt;P&gt;As shown below, both toolbars are present. When I click the calcite action on the left toolbar, the resulting panel displays just fine (Measure, in this example). However, when I click on the calcite action on the right toolbar the panel never displays (test panel, in this example). How can I get the panel to show for the toolbar on the right? I included my condensed code below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JustinKirtz1_0-1651866824466.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40816iE25B1B2FB27F44D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="JustinKirtz1_0-1651866824466.png" alt="JustinKirtz1_0-1651866824466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;body&amp;gt;
    &amp;lt;calcite-loader active&amp;gt;&amp;lt;/calcite-loader&amp;gt;
    &amp;lt;calcite-shell content-behind hidden&amp;gt;
        &amp;lt;h2 id="header-title" slot="header"&amp;gt;&amp;lt;img src="img/gwlogo.png" style="width:30px;height:30px;"&amp;gt;&amp;lt;/h2&amp;gt;
        &amp;lt;!-- FIRST PANEL, ON LEFT SIDE OF MAP --&amp;gt;
        &amp;lt;calcite-shell-panel slot="primary-panel" width-scale='' detached&amp;gt;
            &amp;lt;calcite-action-bar id="appToolbar" slot="action-bar" expanded&amp;gt;
                &amp;lt;calcite-action data-action-id="measure" icon="measure" text="Measure" title="Measure"&amp;gt;&amp;lt;/calcite-action&amp;gt;
            &amp;lt;/calcite-action-bar&amp;gt;
            &amp;lt;!-- map-specific panels (each one provides a div for a ArcGIS JavaScript API widget) --&amp;gt;
            &amp;lt;calcite-panel id='measurePanel' heading="Measure" height-scale="l" data-panel-id="measure" hidden&amp;gt;
                &amp;lt;div id="measure-container"&amp;gt;
                    &amp;lt;div id="distanceBlock"&amp;gt;
                        &amp;lt;button id="distanceButton" type="button" title="Measure distance between two or more points"
                            class="action-button esri-icon-measure-line" style='display:inline;'&amp;gt;&amp;lt;/button&amp;gt;
                        &amp;lt;p style='display:inline;'&amp;gt;Measure A Distance&amp;lt;/p&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div id="areaBlock"&amp;gt;
                        &amp;lt;button id="areaButton" type="button" title="Measure area"
                            class="action-button esri-icon-measure-area" style='display:inline;'&amp;gt;&amp;lt;/button&amp;gt;
                        &amp;lt;p style='display:inline;'&amp;gt;Measure An Area&amp;lt;/p&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div id="distanceBlock3d" class="noDisplay"&amp;gt;
                        &amp;lt;button id="distanceButton3d" type="button" title="Measure distance between two or more points"
                            class="action-button esri-icon-measure-line" style='display:inline;'&amp;gt;&amp;lt;/button&amp;gt;
                        &amp;lt;p style='display:inline;'&amp;gt;Measure A Distance&amp;lt;/p&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div id="areaBlock3d" class="noDisplay"&amp;gt;
                        &amp;lt;button id="areaButton3d" type="button" title="Measure area"
                            class="action-button esri-icon-measure-area" style='display:inline;'&amp;gt;&amp;lt;/button&amp;gt;
                        &amp;lt;p style='display:inline;'&amp;gt;Measure An Area&amp;lt;/p&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/calcite-panel&amp;gt;
            
        &amp;lt;/calcite-shell-panel&amp;gt;
        &amp;lt;!-- SECOND PANEL, ON RIGHT SIDE OF MAP --&amp;gt;
        &amp;lt;calcite-shell-panel slot="primary-panel" width-scale='' detached position="end"&amp;gt;
            &amp;lt;calcite-action-bar id="appToolbar2" slot="action-bar" expanded&amp;gt;
                &amp;lt;calcite-action data-action-id="TEST" icon="layers" text="TEST PANEL" title="TEST PANEL"&amp;gt;
                &amp;lt;/calcite-action&amp;gt;
            &amp;lt;/calcite-action-bar&amp;gt;
            &amp;lt;!-- map-specific panels (each one provides a div for a ArcGIS JavaScript API widget) --&amp;gt;
            &amp;lt;calcite-panel id='TESTPanel' heading="TEST" height-scale="l" data-panel-id="TEST" hidden&amp;gt;
                &amp;lt;div id="TEST-container"&amp;gt;&amp;lt;/div&amp;gt;
            &amp;lt;/calcite-panel&amp;gt;
            
        &amp;lt;/calcite-shell-panel&amp;gt;
        &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div id='overviewMapDiv' style="display:none"&amp;gt;
            &amp;lt;!-- Overview Map Div --&amp;gt;
            &amp;lt;div id='extentIndicator'&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/calcite-shell&amp;gt;
    &amp;lt;div id="tableContainer" class="container hideElement"&amp;gt;
        &amp;lt;!-- Attribute table div --&amp;gt;
        &amp;lt;div id="tableDiv"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;!-- Load the jQuery library --&amp;gt;
    &amp;lt;script src="./node_modules/jquery/jquery-3.6.0.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;!-- Load the jQuery UI library for the data range calendar pickers --&amp;gt;
    &amp;lt;script src="./node_modules/jquery-ui/jquery-ui.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;!-- JQuery Query Builder JS File --&amp;gt;
    &amp;lt;script src="./node_modules/jquery-builder/query-builder.standalone.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;!-- Bootstrap JS File --&amp;gt;
    &amp;lt;script src="./node_modules/bootstrap/bootstrap.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/calcite-components/1.0.0-beta.77/calcite.esm.js" type="module"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;!-- Load the ESRI API library --&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.23/"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;!-- Project JS Code --&amp;gt;
    &amp;lt;script src="js/config.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 19:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/two-calcite-shell-panels-in-same-app-panel-not/m-p/1171656#M132</guid>
      <dc:creator>JustinKirtz1</dc:creator>
      <dc:date>2022-05-06T19:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Two calcite-shell-panels in same app? Panel not displaying</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/two-calcite-shell-panels-in-same-app-panel-not/m-p/1171660#M133</link>
      <description>&lt;P&gt;THe panel on the left is the primary and on the right is the&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-shell-panel slot="contextual-panel" position="end" width-scale="l" detached&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 May 2022 20:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/two-calcite-shell-panels-in-same-app-panel-not/m-p/1171660#M133</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-05-06T20:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Two calcite-shell-panels in same app? Panel not displaying</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/two-calcite-shell-panels-in-same-app-panel-not/m-p/1171664#M134</link>
      <description>&lt;P&gt;Thanks for the quick reply but unfortunately that did not fix the issue. It still isn't unhiding the panel.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 20:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/two-calcite-shell-panels-in-same-app-panel-not/m-p/1171664#M134</guid>
      <dc:creator>JustinKirtz1</dc:creator>
      <dc:date>2022-05-06T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Two calcite-shell-panels in same app? Panel not displaying</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/two-calcite-shell-panels-in-same-app-panel-not/m-p/1171667#M135</link>
      <description>&lt;P&gt;Can you provide the JavaScript code snippet where you add the event listener? My guess is you're only adding the listener to one of the calcite-action-bar elements. You can use &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll" target="_self"&gt;querySelectorAll&lt;/A&gt; to add an event listener to all of the calcite-action-bar elements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;document
  .querySelectorAll("calcite-action-bar")
  .forEach((element) =&amp;gt;
    element.addEventListener("click", handleActionBarClick)
  );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or you could add ids to the action bars and use those.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
  document.querySelector("#action-bar1"),
  document.querySelector("#action-bar2"),
].forEach((element) =&amp;gt; element.addEventListener("click", handleActionBarClick));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 20:17:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/two-calcite-shell-panels-in-same-app-panel-not/m-p/1171667#M135</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2022-05-06T20:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Two calcite-shell-panels in same app? Panel not displaying</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/two-calcite-shell-panels-in-same-app-panel-not/m-p/1171670#M136</link>
      <description>&lt;P&gt;I feel so stupid, that is exactly what my problem was! Thanks y'all for such quick responses!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 20:20:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/two-calcite-shell-panels-in-same-app-panel-not/m-p/1171670#M136</guid>
      <dc:creator>JustinKirtz1</dc:creator>
      <dc:date>2022-05-06T20:20:57Z</dc:date>
    </item>
  </channel>
</rss>

