<?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: esri example &amp;quot;Edit features in 3D with the Editor widget&amp;quot; - how to insert the Expand and Snap elements into a custom widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esri-example-quot-edit-features-in-3d-with-the/m-p/1066034#M14524</link>
    <description>&lt;P&gt;I succeeded, by putting the Expand and th einfo label in the widget HTML, thus:&lt;/P&gt;&lt;P&gt;&amp;lt;div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;span class="div-left" id="edit3dexpand" data-dojo-attach-point="edit3dexpand"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;span class="div-left" id="info"&amp;gt;${nls.titleConfigureSnapping}&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;and in the javascript&amp;amp;colon;&lt;/P&gt;&lt;P&gt;const configurationExpand = new Expand({&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;... (other constructor lines remain the same)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; container: that.edit3dNode.querySelector("#edit3dexpand")&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;and in the css:&lt;/P&gt;&lt;P&gt;.jimu-widget-edit3d .div-left { float: left; }&lt;/P&gt;&lt;P&gt;.jimu-widget-edit3d .div-right { float: right; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 08:58:55 GMT</pubDate>
    <dc:creator>MichaelLev</dc:creator>
    <dc:date>2021-06-09T08:58:55Z</dc:date>
    <item>
      <title>esri example "Edit features in 3D with the Editor widget" - how to insert the Expand and Snap elements into a custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esri-example-quot-edit-features-in-3d-with-the/m-p/1065942#M14522</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm developing custom widgets for WAB&amp;nbsp;(Develper Edtion) 2.20, Launchpad Theme, on&amp;nbsp;&lt;STRONG&gt;3D&lt;/STRONG&gt;&amp;nbsp;Scenes (ArcGIS API for javascript&amp;nbsp;&lt;STRONG&gt;4.20&lt;/STRONG&gt;). I am still a newbie.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My question: How to put, by code, the&amp;nbsp;&lt;SPAN&gt;snapping elements (the info and the Expand that contains the configuration) from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;ESRI code example&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-editor-3d/" target="_blank" rel="noopener nofollow noreferrer"&gt;Edit features in 3D with the Editor widget&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;into lower right corner of my widget? The elements are created by code, so they must be put there by code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be more specific: All I need is to adapt next code (from ESRI example) to insert the 2 components into lower right in the widget:&lt;/P&gt;&lt;P&gt;view.ui.add([{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; component: configurationExpand,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; position: "bottom-right",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; index: 0&lt;BR /&gt;}, {&lt;BR /&gt;component: "info",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; position: "bottom-right",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; index: 1&lt;BR /&gt;}]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// If the snapping configuration is toggled open, hide the info window&lt;BR /&gt;configurationExpand.watch("expanded", (value) =&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (value) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.getElementById("info").classList.add("esri-hidden");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.getElementById("info").classList.remove("esri-hidden");&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Help wil be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 15:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esri-example-quot-edit-features-in-3d-with-the/m-p/1065942#M14522</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2021-06-08T15:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: esri example "Edit features in 3D with the Editor widget" - how to insert the Expand and Snap elements into a custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esri-example-quot-edit-features-in-3d-with-the/m-p/1066034#M14524</link>
      <description>&lt;P&gt;I succeeded, by putting the Expand and th einfo label in the widget HTML, thus:&lt;/P&gt;&lt;P&gt;&amp;lt;div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;span class="div-left" id="edit3dexpand" data-dojo-attach-point="edit3dexpand"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;span class="div-left" id="info"&amp;gt;${nls.titleConfigureSnapping}&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;and in the javascript&amp;amp;colon;&lt;/P&gt;&lt;P&gt;const configurationExpand = new Expand({&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;... (other constructor lines remain the same)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; container: that.edit3dNode.querySelector("#edit3dexpand")&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;and in the css:&lt;/P&gt;&lt;P&gt;.jimu-widget-edit3d .div-left { float: left; }&lt;/P&gt;&lt;P&gt;.jimu-widget-edit3d .div-right { float: right; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 08:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/esri-example-quot-edit-features-in-3d-with-the/m-p/1066034#M14524</guid>
      <dc:creator>MichaelLev</dc:creator>
      <dc:date>2021-06-09T08:58:55Z</dc:date>
    </item>
  </channel>
</rss>

