<?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: recreate WAB Tab Theme in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/recreate-wab-tab-theme/m-p/1067865#M2106</link>
    <description>&lt;P&gt;Could you, perhaps, use a &lt;STRONG&gt;Section &lt;/STRONG&gt;together with a &lt;STRONG&gt;Views Navigation&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1623676897220.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15874i4BAEF94C25B9CF73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1623676897220.png" alt="jcarlson_0-1623676897220.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then you could just fiddle with the navigation button styles to make them look like tabs.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 13:22:16 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-06-14T13:22:16Z</dc:date>
    <item>
      <title>recreate WAB Tab Theme</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/recreate-wab-tab-theme/m-p/1067825#M2105</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to recreate the &lt;EM&gt;WAB Tab Theme&lt;/EM&gt;. I'm not sure if it is possible with the &lt;EM&gt;widget&amp;nbsp;Controller widget&lt;/EM&gt;&amp;nbsp;or the &lt;EM&gt;Views Navigation widget&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I would like create&amp;nbsp;an other widget to show/hide widgets on a sidebar. I try to use the&amp;nbsp;&lt;SPAN&gt;WidgetManager but the method&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;closeWidget&lt;/EM&gt; doesn't remove the dom of the target widget (screenshot below). And I don't know how catch the onClose event on the target widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you help me please.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="henrilebon974_0-1623662617524.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15863i732557A3CC10B51D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="henrilebon974_0-1623662617524.png" alt="henrilebon974_0-1623662617524.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 09:33:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/recreate-wab-tab-theme/m-p/1067825#M2105</guid>
      <dc:creator>henrilebon974</dc:creator>
      <dc:date>2021-06-14T09:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: recreate WAB Tab Theme</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/recreate-wab-tab-theme/m-p/1067865#M2106</link>
      <description>&lt;P&gt;Could you, perhaps, use a &lt;STRONG&gt;Section &lt;/STRONG&gt;together with a &lt;STRONG&gt;Views Navigation&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1623676897220.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15874i4BAEF94C25B9CF73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1623676897220.png" alt="jcarlson_0-1623676897220.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then you could just fiddle with the navigation button styles to make them look like tabs.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 13:22:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/recreate-wab-tab-theme/m-p/1067865#M2106</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-14T13:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: recreate WAB Tab Theme</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/recreate-wab-tab-theme/m-p/1067883#M2107</link>
      <description>&lt;P&gt;I only briefly looked into opening / closing a widget that lives inside a&amp;nbsp;&lt;STRONG&gt;widget controller&lt;/STRONG&gt;. I &lt;EM&gt;believe&amp;nbsp;&lt;/EM&gt;you need to do something like having the widget controller open the panel. From the WAB days, if I recall correctly, the PanelManager was part of the app at large. I&amp;nbsp;&lt;EM&gt;believe (and could be wrong)&lt;/EM&gt;, that the Panel becomes a child to the widget controller inside ExB, a subtle difference. Basically I got to the point where I could open a widget in the controller&amp;nbsp;&lt;EM&gt;if&lt;/EM&gt; I had already opened it manually (meaning the manual part to initialize the panel as part of the controller). I didn't get the code part of this workflow worked out. Here is a copy/paste of how far I got.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;openWidget = () =&amp;gt;{

  const myWidgetURI = 'widgets/my-widget/';
  const widgets = getAppStore().getState().appConfig.widgets;
  let widgetid = ""

  Object.keys(widgets).forEach(function(w) {
    if (widgets[w]['uri']){
      if (widgets[w]['uri'] == myWidgetURI){
        widgetid = widgets[w]['id']
      }
    }
  });
  const wm = WidgetManager.getInstance()

  wm.loadWidgetClassByUri(myWidgetURI).then((e) =&amp;gt; {
    console.log("it loaded:", e)      
    const activate = appActions.activateWidget(widgetid) 
    getAppStore().dispatch(activate);
    //wm.openWidget(widgetid)  //no effect

  return;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We abandon that approach as the app went in another direction. We pushed the widgets into a&amp;nbsp;&lt;STRONG&gt;Views Navigation&lt;/STRONG&gt;, much like Josh proposes. Switching from the controller to the views made more sense as we have a stepped through workflow. Inside each view we just have an entire widget. Moving from one view to the next is pretty straight forward with a button. Eg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import {  Button, Link } from "jimu-ui";

 {/* update the 4 to whatever number in your view */}
&amp;lt;Link to="?views=view_4"&amp;gt;
    &amp;lt;Button size="sm" onClick={this.myFunc}  className="float-right" css={[focusOutline]}&amp;gt;
            {this.props.intl.formatMessage({
              id: "open_widget",
              defaultMessage: defaultMessages.open_widget
            })}
     &amp;lt;/Button&amp;gt;
  &amp;lt;/Link&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 13:51:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/recreate-wab-tab-theme/m-p/1067883#M2107</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-06-14T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: recreate WAB Tab Theme</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/recreate-wab-tab-theme/m-p/1068029#M2108</link>
      <description>&lt;P&gt;Thank Josh.&lt;/P&gt;&lt;P&gt;I tried that but I cannot catch the close event in the widgets. For example if we use a drawing tool with an editor widget when the user open an other widget the drawing tool is not closed.&lt;/P&gt;&lt;P&gt;Regards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 17:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/recreate-wab-tab-theme/m-p/1068029#M2108</guid>
      <dc:creator>henrilebon974</dc:creator>
      <dc:date>2021-06-14T17:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: recreate WAB Tab Theme</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/recreate-wab-tab-theme/m-p/1068275#M2111</link>
      <description>&lt;P&gt;Thank Kevin.&lt;/P&gt;&lt;P&gt;I think this&amp;nbsp;&lt;SPAN&gt;approach&amp;nbsp;is a pretty way. I'm going to work around that.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 07:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/recreate-wab-tab-theme/m-p/1068275#M2111</guid>
      <dc:creator>henrilebon974</dc:creator>
      <dc:date>2021-06-15T07:17:41Z</dc:date>
    </item>
  </channel>
</rss>

