<?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: custom (SL expander) panes in JS layerlist widget? possible? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-sl-expander-panes-in-js-layerlist-widget/m-p/419206#M38521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tracy Schloss,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good afternoon. thanks for replying to my email. I had copied an pasted the contents of the website: pane 1, pane 2 in the above URL (1st post of mine) - I had copied to 2 widgets. One widget that was obtained from about page or with no real items on the widget.&amp;nbsp; the other widget was the layer list widget. I did not do any mods to the layer list widget.&amp;nbsp; the accordion/ expander style behavior did not happen in the layer list widget; but happened in the plane widget (home / about).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had added the references dijit/Titlepane in the html style and in the .js page for the required section. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2015 22:03:20 GMT</pubDate>
    <dc:creator>Ravichandran_M_Kaushika</dc:creator>
    <dc:date>2015-09-23T22:03:20Z</dc:date>
    <item>
      <title>custom (SL expander) panes in JS layerlist widget? possible?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-sl-expander-panes-in-js-layerlist-widget/m-p/419204#M38519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear Readers, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for taking the time to read this posting.&amp;nbsp; We want to implement an expander like behavior on the left side frame for layer list.&amp;nbsp; categorize each type of layer into different Silverlight like expander content panes.&amp;nbsp; after searching around, found this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.10/dijit/TitlePane.html#accordioncontainer-substitute"&gt;http://dojotoolkit.org/reference-guide/1.10/dijit/TitlePane.html#accordioncontainer-substitute&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we copied and pasted the code in a custom / no frills / plain widget and it worked.&amp;nbsp; we later on decided to use it in layer list widget.&amp;nbsp; the expander/ improved accordion behavior did not happen in layer list out of the box widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purpose: we want to separate the layers into 3 to 4 separate expander like 'controls' to minimize clutter on the screen and organize the layers.&amp;nbsp; any idea even if it is different is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 21:20:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-sl-expander-panes-in-js-layerlist-widget/m-p/419204#M38519</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2015-09-23T21:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: custom (SL expander) panes in JS layerlist widget? possible?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-sl-expander-panes-in-js-layerlist-widget/m-p/419205#M38520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you provide some sample code?&amp;nbsp; I routinely use TitlePanes in my work, and I've loaded all sorts of different widgets into them without any problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use them, I always add an empty div tag within the titlePane to serve as the container for the widget,as opposed to using the main titlePane div.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;div id="legendPane" data-dojo-type="dijit/TitlePane" data-dojo-props="title: 'Map Legend', closable:false, open:true" &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="legendDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 21:35:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-sl-expander-panes-in-js-layerlist-widget/m-p/419205#M38520</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-09-23T21:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: custom (SL expander) panes in JS layerlist widget? possible?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-sl-expander-panes-in-js-layerlist-widget/m-p/419206#M38521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tracy Schloss,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good afternoon. thanks for replying to my email. I had copied an pasted the contents of the website: pane 1, pane 2 in the above URL (1st post of mine) - I had copied to 2 widgets. One widget that was obtained from about page or with no real items on the widget.&amp;nbsp; the other widget was the layer list widget. I did not do any mods to the layer list widget.&amp;nbsp; the accordion/ expander style behavior did not happen in the layer list widget; but happened in the plane widget (home / about).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had added the references dijit/Titlepane in the html style and in the .js page for the required section. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 22:03:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-sl-expander-panes-in-js-layerlist-widget/m-p/419206#M38521</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2015-09-23T22:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: custom (SL expander) panes in JS layerlist widget? possible?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-sl-expander-panes-in-js-layerlist-widget/m-p/419207#M38522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please post your code in the forum?&amp;nbsp; It's possible you have a misplaced opening or closing div tag. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 13:50:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-sl-expander-panes-in-js-layerlist-widget/m-p/419207#M38522</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-09-24T13:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: custom (SL expander) panes in JS layerlist widget? possible?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-sl-expander-panes-in-js-layerlist-widget/m-p/419208#M38523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I asked an ESRI employee Mike R. for help.&amp;nbsp; His take on the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while creating a widget inside a widget, we should include _WidgetsInTemplateMixin item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'dijit/_WidgetsInTemplateMixin'&amp;nbsp; in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([...'dojo/dom'... 'dojo/query'...&lt;STRONG&gt; 'dijit/_WidgetsInTemplateMixin'&lt;/STRONG&gt;...],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function (..., ...., &lt;STRONG&gt;dijit/_WidgetsInTemplateMixin'&lt;/STRONG&gt;.... ]&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;var clazz = declare ([BaseWidget,&amp;nbsp; _WidgetInTemplateMixin], {,,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that we pasted the code in html and that fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will mark the answer provided by Tracy Schloss for the benefit of other readers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;status; FIXED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 18:31:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-sl-expander-panes-in-js-layerlist-widget/m-p/419208#M38523</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2015-09-24T18:31:04Z</dc:date>
    </item>
  </channel>
</rss>

