<?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: Creating Tabs in widget.html file in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151257#M4228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, I will start using this approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2015 19:32:20 GMT</pubDate>
    <dc:creator>TimWitt2</dc:creator>
    <dc:date>2015-02-24T19:32:20Z</dc:date>
    <item>
      <title>Creating Tabs in widget.html file</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151255#M4226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create tabs in my widget.html files but can't seem to get it to work. Did anybody have any success with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it to look like this&lt;/P&gt;&lt;P&gt; &lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;lt;div&lt;/SPAN&gt; &lt;SPAN class="na" style="color: #4070a0;"&gt;data-dojo-type=&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;"dijit/layout/TabContainer"&lt;/SPAN&gt; &lt;SPAN class="na" style="color: #4070a0;"&gt;style=&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;"width: 100%; height: 100%;"&lt;/SPAN&gt;&lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;lt;div&lt;/SPAN&gt; &lt;SPAN class="na" style="color: #4070a0;"&gt;data-dojo-type=&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;"dijit/layout/ContentPane"&lt;/SPAN&gt; &lt;SPAN class="na" style="color: #4070a0;"&gt;title=&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;"My first tab"&lt;/SPAN&gt; &lt;SPAN class="na" style="color: #4070a0;"&gt;data-dojo-props=&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;"selected:true"&lt;/SPAN&gt;&lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;lt;div&lt;/SPAN&gt; &lt;SPAN class="na" style="color: #4070a0;"&gt;data-dojo-type=&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;"dijit/layout/ContentPane"&lt;/SPAN&gt; &lt;SPAN class="na" style="color: #4070a0;"&gt;title=&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;"My second tab"&lt;/SPAN&gt;&lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;lt;div&lt;/SPAN&gt; &lt;SPAN class="na" style="color: #4070a0;"&gt;data-dojo-type=&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;"dijit/layout/ContentPane"&lt;/SPAN&gt; &lt;SPAN class="na" style="color: #4070a0;"&gt;title=&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;"My last tab"&lt;/SPAN&gt; &lt;SPAN class="na" style="color: #4070a0;"&gt;&lt;/SPAN&gt;&lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="nt" style="color: #062873; font-weight: bold;"&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 18:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151255#M4226</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-02-24T18:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Tabs in widget.html file</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151256#M4227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In all of my widget that use tabs I just create a div and then do the djit stuff in the js file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTML&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class="identify-tab-node" data-dojo-attach-point="tabNode1"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label&amp;gt;${nls.descriptionlabel}&amp;lt;/label&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ......
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _initTabContainer: function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var tabs = [];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tabs.push({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title: this.nls.identifylabel,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content: this.tabNode1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tabs.push({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title: this.nls.resultslabel,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content: this.tabNode2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.selTab = this.nls.identifylabel;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.tabContainer = new TabContainer({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tabs: tabs,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selected: this.selTab
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, this.tabIdentify);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.tabContainer.startup();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.own(on(this.tabContainer,'tabChanged',lang.hitch(this,function(title){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(title !== this.nls.resultslabel){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.selTab = title;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; utils.setVerticalCenter(this.tabContainer.domNode);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151256#M4227</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T08:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Tabs in widget.html file</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151257#M4228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, I will start using this approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:32:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151257#M4228</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-02-24T19:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Tabs in widget.html file</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151258#M4229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Tim-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind assisting me with implementing the code above? I seem to be having some growing pains with the learning curve with the new WAB widgets (from older FLEX/ESRI JS API). I've also been clicking through these sites to learn more&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/groups/web-app-builder-custom-widgets/activity" title="https://community.esri.com/groups/web-app-builder-custom-widgets"&gt;Web AppBuilder Custom Widgets&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/web-appbuilder/guide/naming-conventions.htm" title="https://developers.arcgis.com/web-appbuilder/guide/naming-conventions.htm"&gt;Naming conventions—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So - I'm using the "Demo" widget template (provided with WAB Dev version) as a boilerplate. I understand the html above to replace what's currently in the "widget.html", and the .js above to insert into the "widget.js" (with define/function parameters) as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/_base/declare',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'jimu/BaseWidget',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dijit/layout/TabContainer'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/P&gt;&lt;P&gt;function(declare, BaseWidget,TabContainer, ContentPane) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; //To create a widget, you need to derive from BaseWidget.&lt;/P&gt;&lt;P&gt;&amp;nbsp; return declare([BaseWidget], {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // DemoWidget code goes here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //please note that this property is be set by the framework when widget is loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //templateString: template,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; baseClass: 'jimu-widget-demo',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; postCreate: function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.inherited(arguments);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('postCreate');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; startup: function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.inherited(arguments);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.mapIdNode.innerHTML = 'map id:' + this.map.id;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('startup');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ////&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ////Code Above in the post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; onOpen: function(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('onOpen');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; onClose: function(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('onClose');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; onMinimize: function(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('onMinimize');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; onMaximize: function(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('onMaximize');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; onSignIn: function(credential){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* jshint unused:false*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('onSignIn');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; onSignOut: function(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log('onSignOut');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I add the widget and refresh the WAB template, I can add the widget into a spot but then I either get a loading screen or an error saying "create widget error: widget\demo\widget". I can add other custom widgets, so I haven't quite figured out how to implement Dojo as of yet with these widgets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 17:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151258#M4229</guid>
      <dc:creator>RobertMueller_Jr1</dc:creator>
      <dc:date>2016-02-09T17:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Tabs in widget.html file</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151259#M4230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Your likely issue is that you are not using _widgetsInTemplate mixin in your code:&lt;/P&gt;&lt;P&gt;Notice lines( 4, 7 and 9)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;define([
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dojo/_base/declare',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'jimu/BaseWidget',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dijit/_WidgetsInTemplateMixin',
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'dijit/layout/TabContainer'
&amp;nbsp;&amp;nbsp;&amp;nbsp; ],
function(declare, BaseWidget, _WidgetsInTemplateMixin, TabContainer, ContentPane) {
&amp;nbsp; //To create a widget, you need to derive from BaseWidget.
&amp;nbsp; return declare([BaseWidget, _WidgetsInTemplateMixin], {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // DemoWidget code goes here&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this link: &lt;A href="https://developers.arcgis.com/web-appbuilder/guide/define-the-template.htm" title="https://developers.arcgis.com/web-appbuilder/guide/define-the-template.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Define the template—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Bottom of the page you will find this note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, the widget’s template does not support dijits in the template. If you need to use dijits in the template, add dijit/_WidgetsInTemplateMixin to your required list, and add this class to your widget. Ensure that you have all the required dijits for your template. For more information, see &lt;A href="http://dojotoolkit.org/documentation/tutorials/1.9/templated/" rel="nofollow noopener noreferrer" target="_blank"&gt;Creating template-based widgets&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:07:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151259#M4230</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T08:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Tabs in widget.html file</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151260#M4231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert! - I will give that a try. Not sure how I missed (disregarded really) that in the documentation. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 19:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151260#M4231</guid>
      <dc:creator>RobertMueller_Jr1</dc:creator>
      <dc:date>2016-02-09T19:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Tabs in widget.html file</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151261#M4232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried your above code, and its working fine. But when i am trying to create more than 3 tabs, It is not appearing correctly. Please find below image.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/334537_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Can u please help me out.. how to make it correct like multiple&amp;nbsp;tabs created&amp;nbsp;in dojo with tab strips shown below, also i would like to create nested tabs (i.e. tab inside a tab).&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/334536_pastedImage_2.png" style="width: 620px; height: 28px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 13:08:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151261#M4232</guid>
      <dc:creator>ShaikhRizuan</dc:creator>
      <dc:date>2017-03-05T13:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Tabs in widget.html file</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151262#M4233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shaikh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;When using the jimu/dijits/TabContainer it is very limited compared to dojo/layout/tabContainer in its ability to show many tabs and not truncate the text label for them. If you need more of the standard dojo layout tab container ability then you need to switch to that instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 16:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151262#M4233</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-03-05T16:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Tabs in widget.html file</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151263#M4234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaikh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How exactly did you implemented Robert's code to get what's shown in your picture. Is there any chance I can see your HTML and JS files? Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 21:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/creating-tabs-in-widget-html-file/m-p/151263#M4234</guid>
      <dc:creator>XuanKuai</dc:creator>
      <dc:date>2019-12-03T21:10:15Z</dc:date>
    </item>
  </channel>
</rss>

