<?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: Recommended Way to Programatically Toggle Active calcite-tab in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/recommended-way-to-programatically-toggle-active/m-p/1059913#M10</link>
    <description>&lt;P&gt;Thanks for the code Paul.&amp;nbsp; However it seems to only work immediately after it loads.&amp;nbsp; I am trying to toggle the tabs when the user performs an action.&amp;nbsp; Try clicking the Toggle button at the top:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/justingreco/pen/xxqgERZ" target="_blank"&gt;https://codepen.io/justingreco/pen/xxqgERZ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 13:37:41 GMT</pubDate>
    <dc:creator>Justin_Greco</dc:creator>
    <dc:date>2021-05-20T13:37:41Z</dc:date>
    <item>
      <title>Recommended Way to Programatically Toggle Active calcite-tab</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/recommended-way-to-programatically-toggle-active/m-p/1057710#M8</link>
      <description>&lt;P&gt;What is the recommended method for switching the active calcite-tab with code? &amp;nbsp;I was thinking it would just be adding the active attribute on the new tab and remove it from the old tab. &amp;nbsp;This does work, but the issue I have is that the tab indicator is not changing as well. &amp;nbsp;I have tried dispatching a click event and a touch event on the tab title, but that doesn’t seem to work on touch devices.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 17:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/recommended-way-to-programatically-toggle-active/m-p/1057710#M8</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2021-05-13T17:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Recommended Way to Programatically Toggle Active calcite-tab</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/recommended-way-to-programatically-toggle-active/m-p/1059454#M9</link>
      <description>&lt;P&gt;Hey Justin,&lt;/P&gt;&lt;P&gt;I believe you're meant to update the &lt;STRONG&gt;calcite-tab-title&lt;/STRONG&gt; component. You should be able to remove the attribute from the old title and set it on the new one:&amp;nbsp;&lt;A href="https://codepen.io/paulcp/pen/WNpoJdW?editors=1010" target="_self"&gt;https://codepen.io/paulcp/pen/WNpoJdW?editors=1010&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The correct tab should show after you update the title. Hope that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 15:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/recommended-way-to-programatically-toggle-active/m-p/1059454#M9</guid>
      <dc:creator>paulcpederson</dc:creator>
      <dc:date>2021-05-19T15:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Recommended Way to Programatically Toggle Active calcite-tab</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/recommended-way-to-programatically-toggle-active/m-p/1059913#M10</link>
      <description>&lt;P&gt;Thanks for the code Paul.&amp;nbsp; However it seems to only work immediately after it loads.&amp;nbsp; I am trying to toggle the tabs when the user performs an action.&amp;nbsp; Try clicking the Toggle button at the top:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/justingreco/pen/xxqgERZ" target="_blank"&gt;https://codepen.io/justingreco/pen/xxqgERZ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 13:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/recommended-way-to-programatically-toggle-active/m-p/1059913#M10</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2021-05-20T13:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Recommended Way to Programatically Toggle Active calcite-tab</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/recommended-way-to-programatically-toggle-active/m-p/1059917#M11</link>
      <description>&lt;P&gt;Here is my hack to get around it.&amp;nbsp; I am dispatching a keydown event with the ENTER key.&amp;nbsp; This works on both touch and non-touch devices, I'm not sure why just a click event doesn't work on touch devices.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/justingreco/pen/wvJgzJX?editors=1111" target="_blank"&gt;https://codepen.io/justingreco/pen/wvJgzJX?editors=1111&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 13:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/recommended-way-to-programatically-toggle-active/m-p/1059917#M11</guid>
      <dc:creator>Justin_Greco</dc:creator>
      <dc:date>2021-05-20T13:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Recommended Way to Programatically Toggle Active calcite-tab</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/recommended-way-to-programatically-toggle-active/m-p/1060135#M12</link>
      <description>&lt;P&gt;You're totally right, I've opened an issue for this, I think it's just a bug.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/calcite-components/issues/2185" target="_blank"&gt;https://github.com/Esri/calcite-components/issues/2185&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 19:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/recommended-way-to-programatically-toggle-active/m-p/1060135#M12</guid>
      <dc:creator>paulcpederson</dc:creator>
      <dc:date>2021-05-20T19:06:07Z</dc:date>
    </item>
  </channel>
</rss>

