<?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 Widget's callback functions in Launchpad theme not working? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/widget-s-callback-functions-in-launchpad-theme-not/m-p/468217#M12335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I created a custom widget with Web Appbuilder 1.2 developer version, and noticed the widget's callback functions behaved differently when I use Launchpad theme. For example, onOpen function is called only once when I opened it the first time, and onClose callback function is never called when I closes the widget panel.&amp;nbsp; is this a intended behavior, or is it a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Roman&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 18:48:17 GMT</pubDate>
    <dc:creator>RomanChueh</dc:creator>
    <dc:date>2015-08-14T18:48:17Z</dc:date>
    <item>
      <title>Widget's callback functions in Launchpad theme not working?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/widget-s-callback-functions-in-launchpad-theme-not/m-p/468217#M12335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I created a custom widget with Web Appbuilder 1.2 developer version, and noticed the widget's callback functions behaved differently when I use Launchpad theme. For example, onOpen function is called only once when I opened it the first time, and onClose callback function is never called when I closes the widget panel.&amp;nbsp; is this a intended behavior, or is it a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Roman&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 18:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/widget-s-callback-functions-in-launchpad-theme-not/m-p/468217#M12335</guid>
      <dc:creator>RomanChueh</dc:creator>
      <dc:date>2015-08-14T18:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Widget's callback functions in Launchpad theme not working?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/widget-s-callback-functions-in-launchpad-theme-not/m-p/468218#M12336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here is a work around you can apply to your widget to fix the onClose issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I add the dojo/aspect require and then in the postCreate function I add the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*Workaround for the LanunchPad theme not firing onClose and onOpen for the widget*/
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(this.appConfig.theme.name === "LaunchpadTheme"){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var tPanel = this.getPanel();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(tPanel){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aspect.after(tPanel, "onClose", lang.hitch(this, this.onClose));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aspect.after(tPanel, "onOpen", lang.hitch(this, this.onOpen));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*end work around for LaunchPad*/
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:45:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/widget-s-callback-functions-in-launchpad-theme-not/m-p/468218#M12336</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T20:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Widget's callback functions in Launchpad theme not working?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/widget-s-callback-functions-in-launchpad-theme-not/m-p/468219#M12337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's working great.&amp;nbsp; Thank you Robert.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 18:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/widget-s-callback-functions-in-launchpad-theme-not/m-p/468219#M12337</guid>
      <dc:creator>RomanChueh</dc:creator>
      <dc:date>2015-08-31T18:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Widget's callback functions in Launchpad theme not working?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/widget-s-callback-functions-in-launchpad-theme-not/m-p/468220#M12338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's the launchpad panel's bug, when panel is closed, it doesn't close its widget. This bug will be fixed in next release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 02:09:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/widget-s-callback-functions-in-launchpad-theme-not/m-p/468220#M12338</guid>
      <dc:creator>JunshanLiu</dc:creator>
      <dc:date>2015-09-01T02:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Widget's callback functions in Launchpad theme not working?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/widget-s-callback-functions-in-launchpad-theme-not/m-p/468221#M12339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is ESRI aware the same happens with the Tab Theme when the widget is located in the "Other Panels"? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 18:18:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/widget-s-callback-functions-in-launchpad-theme-not/m-p/468221#M12339</guid>
      <dc:creator>MariaNieves</dc:creator>
      <dc:date>2015-09-01T18:18:26Z</dc:date>
    </item>
  </channel>
</rss>

