<?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 WAB initialization complete and DOM built event? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66334#M1867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a mechanism&amp;nbsp;in place to know when a&amp;nbsp;Web AppBuilder app/map has been fully initialized and the entire DOM built and visible? We need to know when the app is ready for use (specifically, when the Header Widget is visible) so we can perform some minor DOM manipulation. We could use javascript's setTimeout to periodically check for the existince of the DOM elements in which we're interested, but perhaps there's a cleaner way to do this using WAB or dojo events or callbacks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Aug 2016 13:53:16 GMT</pubDate>
    <dc:creator>Keith-Bornhorst</dc:creator>
    <dc:date>2016-08-13T13:53:16Z</dc:date>
    <item>
      <title>WAB initialization complete and DOM built event?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66334#M1867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a mechanism&amp;nbsp;in place to know when a&amp;nbsp;Web AppBuilder app/map has been fully initialized and the entire DOM built and visible? We need to know when the app is ready for use (specifically, when the Header Widget is visible) so we can perform some minor DOM manipulation. We could use javascript's setTimeout to periodically check for the existince of the DOM elements in which we're interested, but perhaps there's a cleaner way to do this using WAB or dojo events or callbacks?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Aug 2016 13:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66334#M1867</guid>
      <dc:creator>Keith-Bornhorst</dc:creator>
      <dc:date>2016-08-13T13:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: WAB initialization complete and DOM built event?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66335#M1868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Keith,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;There is no such event that I am aware of. Maybe you can explain your need for such an event better (i.e. your workflow) and I can make a recommendation?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 21:24:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66335#M1868</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-15T21:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: WAB initialization complete and DOM built event?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66336#M1869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Robert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WAB/LaunchpadTheme is responsive and&amp;nbsp;on smaller devices we'd like the logo to be a link to the main site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short term solution was to add "Home" to the links array in config.json since that's always visible. Using JS we could wrap an A tag around the logo image, but I quickly realized that it takes a few seconds for those DOM elements to appear on the page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In lieu of updating the LaunchpadTheme header widget and config options... YET... (although it's probably not a bad idea to add/request that functionality to the theme itself - i.e. wrap optional A tags around&amp;nbsp;".jimu-widget-header .logo" and ".jimu-widget-header .title") I added some JavaScript to modify the DOM when ready using jQuery and window.setTimeout to&amp;nbsp;recursively call a function&amp;nbsp;that checks for the presence of the header logo image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enhancing the theme header widget will definitely be the better, long-term option for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 17:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66336#M1869</guid>
      <dc:creator>Keith-Bornhorst</dc:creator>
      <dc:date>2016-08-16T17:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: WAB initialization complete and DOM built event?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66337#M1870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Keith,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;You are correct that modifying the&amp;nbsp;launchpad themes header Widget.js is the best solution. But if you really need a short term solution than you add some code listen from the widget creation event topic. topic.subscribe("widgetCreated") and see if it is the Header widget and if so then do your dom manipulation.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 21:15:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66337#M1870</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-16T21:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: WAB initialization complete and DOM built event?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66338#M1871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting... I've yet to create a custom widget (or do any dojo/dijit development) so dojo/topic is new to me - thanks for the additional (and cleaner) workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 22:41:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66338#M1871</guid>
      <dc:creator>Keith-Bornhorst</dc:creator>
      <dc:date>2016-08-16T22:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: WAB initialization complete and DOM built event?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66339#M1872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Info! &amp;nbsp;Is this documented somewhere? &amp;nbsp;I mean WAB topics (I've used topic extensively elsewhere)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 18:10:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66339#M1872</guid>
      <dc:creator>JadeFreeman</dc:creator>
      <dc:date>2017-01-05T18:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: WAB initialization complete and DOM built event?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66340#M1873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jade,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;No they are not documented. The best way to find them is to search the code for topic.publish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 18:24:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66340#M1873</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-01-05T18:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: WAB initialization complete and DOM built event?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66341#M1874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, this was just what I was looking for!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 20:13:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/wab-initialization-complete-and-dom-built-event/m-p/66341#M1874</guid>
      <dc:creator>JadeFreeman</dc:creator>
      <dc:date>2017-01-05T20:13:51Z</dc:date>
    </item>
  </channel>
</rss>

