<?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: After render method in a Widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-render-method-in-a-widget/m-p/1077256#M73791</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/496316"&gt;@MartijnHoogstraten&lt;/a&gt;&amp;nbsp;the short answer is no. What are you trying to do? Here's the widget life cycle events:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/custom-widget/#widget-life-cycle" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/custom-widget/#widget-life-cycle&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 14:46:32 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2021-07-09T14:46:32Z</dc:date>
    <item>
      <title>After render method in a Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-render-method-in-a-widget/m-p/1077227#M73788</link>
      <description>&lt;P&gt;Hello Esri community,&lt;/P&gt;&lt;P&gt;Is there a method or event in a widget that will be executed after rendering elements into the dom?&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#render" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#render&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-render-method-in-a-widget/m-p/1077227#M73788</guid>
      <dc:creator>MartijnHoogstraten</dc:creator>
      <dc:date>2021-07-09T14:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: After render method in a Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-render-method-in-a-widget/m-p/1077256#M73791</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/496316"&gt;@MartijnHoogstraten&lt;/a&gt;&amp;nbsp;the short answer is no. What are you trying to do? Here's the widget life cycle events:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/custom-widget/#widget-life-cycle" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/custom-widget/#widget-life-cycle&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-render-method-in-a-widget/m-p/1077256#M73791</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-07-09T14:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: After render method in a Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-render-method-in-a-widget/m-p/1077264#M73794</link>
      <description>&lt;P&gt;Hi Andy, thanks for responding.&lt;/P&gt;&lt;P&gt;Sometimes we want to use node object to change states or use some of the DOM methods. But if we create a new widget inside a widget e.g. &amp;lt;div afterCreate={this.createSubWidget.bind(this)} /&amp;gt; and that subwidget for example sets something inside the attribute value of an input field. The input element has not been rendered yet, so what we do now is in the sub widget we do a&amp;nbsp;afterCreate and set the node to a property inside the widget and we emit an event that the node has been set.&amp;nbsp;&lt;SPAN&gt;We then use that event to do something with that node.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If there is an afterRender method im always sure that the node is available and we dont have to create custom events.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 15:06:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-render-method-in-a-widget/m-p/1077264#M73794</guid>
      <dc:creator>MartijnHoogstraten</dc:creator>
      <dc:date>2021-07-09T15:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: After render method in a Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-render-method-in-a-widget/m-p/1077318#M73796</link>
      <description>&lt;P&gt;Interesting, I think I understand your issue that there is a chain of synchronous DOM events after the parent widget has been created, and the question is whether or not the parent is aware when the final afterCreate event takes place. I'm just wondering, have you look at setting afterUpdate on the parent div? I can see there being potential problems with that but just in case here's the doc:&amp;nbsp;&lt;A href="https://maquettejs.org/typedoc/interfaces/vnodeproperties.html#afterupdate" target="_blank"&gt;https://maquettejs.org/typedoc/interfaces/vnodeproperties.html#afterupdate&lt;/A&gt;. Also on that page you can browse through all the event methods.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/custom-widget/#widget-rendering" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/custom-widget/#widget-rendering&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 16:12:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-render-method-in-a-widget/m-p/1077318#M73796</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-07-09T16:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: After render method in a Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-render-method-in-a-widget/m-p/1077693#M73815</link>
      <description>&lt;P&gt;Thank you Andy.&lt;/P&gt;&lt;P&gt;After update will be triggered everytime something changes inside the node, in that case we get addional code to check wheater we already have set certain variables. But it is another solution. I think for now i understand the limitation and writing an event is not a big of a deal, lets hope we get more flexibility in the near future.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 07:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/after-render-method-in-a-widget/m-p/1077693#M73815</guid>
      <dc:creator>MartijnHoogstraten</dc:creator>
      <dc:date>2021-07-12T07:00:54Z</dc:date>
    </item>
  </channel>
</rss>

