<?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: Slice Tool custom widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876286#M13586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert, Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As usual, your help is very effective and helpful -&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I succeeded to open LayerList widget from within my slice custom widget&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;learning from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;WAB example stemapp/widgets/samplewidgets/WidgetCommunication - THANK YOU!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note:&amp;nbsp; In order to have LayerList widget work under API 4.16 I had to remove&amp;nbsp;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;'dojo/i18n!esri/nls/common'&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from define and&amp;nbsp;&lt;EM&gt;&lt;SPAN style="color: #800000;"&gt;apiNlsBundle&lt;/SPAN&gt; &lt;/EM&gt;from function arguments. It works.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I see t's not needed in 4.16, though I'd like to know what it is? and why it's not needed anymore in 4.16 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2020 03:55:19 GMT</pubDate>
    <dc:creator>MichaelLev</dc:creator>
    <dc:date>2020-07-15T03:55:19Z</dc:date>
    <item>
      <title>Slice Tool custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876281#M13581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to adapt slice tool widget&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/building-scene-layer-slice/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/building-scene-layer-slice/index.html"&gt;BuildingSceneLayer with Slice widget | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in order to have slice tool custom widget within ArcGIS Web AppBuilder (Developer Edition) 2.16&lt;/P&gt;&lt;P&gt;However, thogh the excample app works,&lt;/P&gt;&lt;P&gt;yet when I look at the console, the above link displays some error message. Screenshot attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2020 07:40:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876281#M13581</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-07-12T07:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Slice Tool custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876282#M13582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/sample-code/change-url-of-arcgis-api-for-javascript.htm" title="https://developers.arcgis.com/web-appbuilder/sample-code/change-url-of-arcgis-api-for-javascript.htm"&gt;Change the URL of ArcGIS API for JavaScript—ArcGIS Web AppBuilder (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 01:51:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876282#M13582</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-13T01:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Slice Tool custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876283#M13583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert,&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I've succeeded to activate my in-panel custom widget (which is based on API 4.16) by learning from your zip of screenshot and from more widgets, and to to solve most my bugs, and I'm continuing debugging.&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 07:22:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876283#M13583</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-07-14T07:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Slice Tool custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876284#M13584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert,&lt;/P&gt;&lt;P&gt;I'm debugging my slice custom widget and it works, however I have questions concerning the UI code needed for displaying the LayersList:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In esri example&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/building-scene-layer-slice/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/building-scene-layer-slice/index.html"&gt;BuildingSceneLayer with Slice widget | ArcGIS API for JavaScript 4.16&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is the paragraph to display the layers list at top-left&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; // Add a layer list widget&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; const layerList = new LayerList({&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; view: view&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; view.ui.empty("top-left");&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; view.ui.add(layerList, "top-left");&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the slice widget popup itself is displayed at top-left, I want to display the layers list at bottom-right, so I write (in the widget.js)&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.sceneView.ui.empty("bottom-right");&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.sceneView.ui.add(this.layerList, "bottom-right");&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the wh&lt;SPAN style="color: #000000;"&gt;ole&amp;nbsp;this.sceneView.ui is hidden since class&amp;nbsp;&lt;SPAN style="color: #222222; background-color: #ffffff;"&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;esri-ui-corner-container&lt;/EM&gt;&lt;/SPAN&gt; is hidden which is the father of the 4 corners. and top-left corner is not empty.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222;"&gt;My questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222;"&gt;1. How should I handle correctly the display of the layers list?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222;"&gt;&amp;nbsp; &amp;nbsp; Below are the 4 lines I did, but maybe there is a cleaner and nicer way?:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;this.sceneView.ui.empty("bottom-right");&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.sceneView.ui.add(this.layerList, "bottom-right");&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.getElementsByClassName("esri-ui-corner-container")[0].style.display = "block";&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.getElementsByClassName("esri-ui-top-left")[0].style.display = "none";&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #800000; "&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &lt;/EM&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;And I don't know yet why top-left of &lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;esri-ui-corner-container&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #222222; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;is not empty already but has some widgets in it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222;"&gt;2. Could I (how?) display the layerslist in a popup that the user can drag upon the screen (or even minimize and maximize?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #222222;"&gt;I'll appreciate your help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 15:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876284#M13584</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-07-14T15:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Slice Tool custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876285#M13585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You need to try and understand the differences and similarities between the API samples and WAB.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Widgets. WAB has widgets and JS API has widgets. The JS API uses the view.ui to place widgets whereas WAB uses it's own internal method.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;WAB already has a LayerList widget developed so just ignore that portion of the same and use the WAB LayerList widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 15:16:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876285#M13585</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-14T15:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Slice Tool custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876286#M13586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert, Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As usual, your help is very effective and helpful -&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I succeeded to open LayerList widget from within my slice custom widget&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;learning from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;WAB example stemapp/widgets/samplewidgets/WidgetCommunication - THANK YOU!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note:&amp;nbsp; In order to have LayerList widget work under API 4.16 I had to remove&amp;nbsp;&lt;SPAN style="color: #800000;"&gt;&lt;EM&gt;'dojo/i18n!esri/nls/common'&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from define and&amp;nbsp;&lt;EM&gt;&lt;SPAN style="color: #800000;"&gt;apiNlsBundle&lt;/SPAN&gt; &lt;/EM&gt;from function arguments. It works.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I see t's not needed in 4.16, though I'd like to know what it is? and why it's not needed anymore in 4.16 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 03:55:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/slice-tool-custom-widget/m-p/876286#M13586</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2020-07-15T03:55:19Z</dc:date>
    </item>
  </channel>
</rss>

