<?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: Attach-point vs placeAt in Custom Widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-point-vs-placeat-in-custom-widget/m-p/823436#M7622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Prashant,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; This is something you will not find explicit help documentation on. PlaceAt (as you have already mentioned) is a dojo dijit/widget native method for adding the dijit to a particular dom node. Normally you use this when creating a dijit programatically and need to add it to the dom. Hardly ever do I use it as in my widget development I have a dom node that uses data-dojo-attach-point in my widget template that I will replace with the&amp;nbsp;&lt;SPAN&gt;programatically created dijit. In the example you have above the&amp;nbsp;programatically created dijit is placed at the parent widgets domNode which very likely does not have a&amp;nbsp;data-dojo-attach-point that could be used.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2019 14:49:54 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-01-21T14:49:54Z</dc:date>
    <item>
      <title>Attach-point vs placeAt in Custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-point-vs-placeat-in-custom-widget/m-p/823435#M7621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was exploring add data widget code and&amp;nbsp;I can see&amp;nbsp;two different ways to attach&amp;nbsp;DOM element while instantiating custom widgets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To &lt;SPAN&gt;instantiate "&lt;/SPAN&gt;AddFromFilePane" widget below code is used. this.fileNode is actually&amp;nbsp;data-dojo-attach-point="fileNode" in template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;this.addFromFilePane = new AddFromFilePane({&lt;BR /&gt; wabWidget: this&lt;BR /&gt; },&lt;STRONG&gt;this.fileNode&lt;/STRONG&gt;);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and for "LayerListPane",placeAt function is used to assign domNode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;this.layerListPane = new LayerListPane({&lt;BR /&gt; wabWidget: this&lt;BR /&gt; });&lt;BR /&gt; this.layerListPane.placeAt(&lt;STRONG&gt;this.domNode&lt;/STRONG&gt;);&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I got some idea about placeAt() on dojo/dijit custom widget document but didn't find any help for first scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to know main difference between these two implementation and any help document which explain first scenario in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 05:46:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-point-vs-placeat-in-custom-widget/m-p/823435#M7621</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2019-01-21T05:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Attach-point vs placeAt in Custom Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-point-vs-placeat-in-custom-widget/m-p/823436#M7622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Prashant,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; This is something you will not find explicit help documentation on. PlaceAt (as you have already mentioned) is a dojo dijit/widget native method for adding the dijit to a particular dom node. Normally you use this when creating a dijit programatically and need to add it to the dom. Hardly ever do I use it as in my widget development I have a dom node that uses data-dojo-attach-point in my widget template that I will replace with the&amp;nbsp;&lt;SPAN&gt;programatically created dijit. In the example you have above the&amp;nbsp;programatically created dijit is placed at the parent widgets domNode which very likely does not have a&amp;nbsp;data-dojo-attach-point that could be used.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/attach-point-vs-placeat-in-custom-widget/m-p/823436#M7622</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-01-21T14:49:54Z</dc:date>
    </item>
  </channel>
</rss>

