<?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: Calcite elements in custom widget - but Shadow DOM only correct after unrelated map Popup was shown in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-elements-in-custom-widget-but-shadow-dom/m-p/1547876#M752</link>
    <description>&lt;P&gt;Ok, got it sorted by looking at the Popup source code ( the best manual to read &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// inherited widget method (same as postInitialize(), initialize() etc)
loadDependencies() {

		// componentsUtils = "esri/chunks/componentsUtils" (not in the TypeScript typings by default.)
    return componentsUtils.loadCalciteComponents({

        flow: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-flow'], a)),
        'flow-item': () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-flow-item'], a)),
        list: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-list'], a)),
        'list-item': () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-list-item'], a)),
        'action-menu': () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-action-menu'], a)),
        'action-group': () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-action-group'], a)),
        action: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-action'], a)),
        icon: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-icon'], a)),

        button: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-button'], a)),
        notice: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-notice'], a)),
        tooltip: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-tooltip'], a))

    });
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2024 06:13:57 GMT</pubDate>
    <dc:creator>GertConradie</dc:creator>
    <dc:date>2024-10-11T06:13:57Z</dc:date>
    <item>
      <title>Calcite elements in custom widget - but Shadow DOM only correct after unrelated map Popup was shown</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-elements-in-custom-widget-but-shadow-dom/m-p/1547506#M749</link>
      <description>&lt;P&gt;I created a custom widget that use the same Calcite elements and structure that is being used in the default LayerList widget. (calcite-flow &amp;gt; calcite-flow-item &amp;gt; calcite-list &amp;gt; calcite-list-item)&lt;/P&gt;&lt;P&gt;Note the custom widget is located an "Expand" widget, so it is only visible when expanded.&lt;/P&gt;&lt;P&gt;The default shadow DOM are not being created when I load the widget and start to use it.&lt;/P&gt;&lt;P&gt;Any time after the use/open of a map Popup widget the&amp;nbsp;shadow DOM of my custom widget is created (the shadow DOM look like as what one would fine in the default LayerList widget) and display properly.&lt;/P&gt;&lt;P&gt;Are there something I must do/trigger/wait for something to complete when my custom widget render?&lt;/P&gt;&lt;P&gt;I suspect the hydration did not happen correctly/at all initially when I just open my custom widget and it is not clear to me how to trigger that from a custom widget.&lt;/P&gt;&lt;P&gt;As usual, any advice would be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 09:35:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-elements-in-custom-widget-but-shadow-dom/m-p/1547506#M749</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2024-10-10T09:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calcite elements in custom widget - but Shadow DOM only correct after unrelated map Popup was shown</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calcite-elements-in-custom-widget-but-shadow-dom/m-p/1547876#M752</link>
      <description>&lt;P&gt;Ok, got it sorted by looking at the Popup source code ( the best manual to read &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// inherited widget method (same as postInitialize(), initialize() etc)
loadDependencies() {

		// componentsUtils = "esri/chunks/componentsUtils" (not in the TypeScript typings by default.)
    return componentsUtils.loadCalciteComponents({

        flow: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-flow'], a)),
        'flow-item': () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-flow-item'], a)),
        list: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-list'], a)),
        'list-item': () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-list-item'], a)),
        'action-menu': () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-action-menu'], a)),
        'action-group': () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-action-group'], a)),
        action: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-action'], a)),
        icon: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-icon'], a)),

        button: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-button'], a)),
        notice: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-notice'], a)),
        tooltip: () =&amp;gt; new Promise((a, b) =&amp;gt; require(['esri/chunks/calcite-tooltip'], a))

    });
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 06:13:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calcite-elements-in-custom-widget-but-shadow-dom/m-p/1547876#M752</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2024-10-11T06:13:57Z</dc:date>
    </item>
  </channel>
</rss>

