<?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: Programmatically restore a calcite panel that was dismissed in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/programmatically-restore-a-calcite-panel-that-was/m-p/1169940#M121</link>
    <description>&lt;P&gt;Using the &lt;A href="https://developers.arcgis.com/calcite-design-system/components/panel/#component-api-properties-dismissed" target="_self"&gt;&lt;SPAN&gt;dismissed&amp;nbsp;&lt;/SPAN&gt;property&lt;/A&gt; is the correct approach. Here is a codepen:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/benesri/pen/wvyBgZV?editors=1000" target="_blank" rel="noopener"&gt;https://codepen.io/benesri/pen/wvyBgZV?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2022 22:06:27 GMT</pubDate>
    <dc:creator>BenElan</dc:creator>
    <dc:date>2022-05-02T22:06:27Z</dc:date>
    <item>
      <title>Programmatically restore a calcite panel that was dismissed</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/programmatically-restore-a-calcite-panel-that-was/m-p/1169918#M120</link>
      <description>&lt;P&gt;I am using a panel that would like&amp;nbsp; programmatically reverse the status set by using the dismissible and dismissed properties.&lt;/P&gt;&lt;P&gt;If use the dismissible property and the x is clicked, wanted to programmatically restore the panel visibility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-panel dismissible id="X"&amp;gt;
          &amp;lt;div slot="header-content"&amp;gt;Test&amp;lt;/div&amp;gt;          &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;document.getElementById("X").style.display = 'block'   &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if the panel is originally hidden&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;calcite-panel dismissed id="X"&amp;gt;
          &amp;lt;div slot="header-content"&amp;gt;Test&amp;lt;/div&amp;gt;          &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;document.getElementById("X").style.display = 'block'   &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; document.getElementsByTagName("calcite-panel").dismissed = false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 21:21:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/programmatically-restore-a-calcite-panel-that-was/m-p/1169918#M120</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2022-05-02T21:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically restore a calcite panel that was dismissed</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/programmatically-restore-a-calcite-panel-that-was/m-p/1169940#M121</link>
      <description>&lt;P&gt;Using the &lt;A href="https://developers.arcgis.com/calcite-design-system/components/panel/#component-api-properties-dismissed" target="_self"&gt;&lt;SPAN&gt;dismissed&amp;nbsp;&lt;/SPAN&gt;property&lt;/A&gt; is the correct approach. Here is a codepen:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/benesri/pen/wvyBgZV?editors=1000" target="_blank" rel="noopener"&gt;https://codepen.io/benesri/pen/wvyBgZV?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 22:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/programmatically-restore-a-calcite-panel-that-was/m-p/1169940#M121</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2022-05-02T22:06:27Z</dc:date>
    </item>
  </channel>
</rss>

