<?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 Wrapping custom js api widget as ExB widget fails on dojo/i18n in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308658#M478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a custom widget written in JS API 4.x and I followed the&amp;nbsp;&lt;A class="jivelink1" href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/samples/js-api-widget" title="https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/samples/js-api-widget"&gt;https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/samples/js-api-widget&lt;/A&gt;&amp;nbsp;to wrap the widget inside an ExB widget.&lt;/P&gt;&lt;P&gt;Let's assume the custom JS API widget is called Template and the build/transpiled files structure is:&lt;/P&gt;&lt;P&gt;- \Template.js&lt;/P&gt;&lt;P&gt;- \Template\TemplateViewModel.js&lt;/P&gt;&lt;P&gt;- \Template\nls\Template.js&lt;/P&gt;&lt;P&gt;- \Template\css\Template.css&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I followed these steps to add the widget into the ExB:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- added the custom widget's transpiled files into the ExB widget's lib folder (your-extensions\widgets\my-custom-widget\src\runtime\lib)&lt;/P&gt;&lt;P&gt;- imported the custom widget inside the ExB widget class (import Template from "./lib/Template")&lt;/P&gt;&lt;P&gt;- create the widget instance as showcased in the sample mentioned above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in runtime of the ExB application, loading the widget fails on systemjs.js&amp;nbsp;fetching nls/localization files&amp;nbsp;of&amp;nbsp;the custom JS API widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As my custom JS API 4.x widget&amp;nbsp;imports&amp;nbsp;its localization files using&amp;nbsp;dojo/i18n!./Template/nls/Template, this does not work while wrapping the widget inside an ExB widget.&lt;/P&gt;&lt;P&gt;What is the best practice to wrap custom JS API widgets inside an ExB widgets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matej&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2020 13:31:14 GMT</pubDate>
    <dc:creator>MatejVrtich</dc:creator>
    <dc:date>2020-05-20T13:31:14Z</dc:date>
    <item>
      <title>Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308658#M478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a custom widget written in JS API 4.x and I followed the&amp;nbsp;&lt;A class="jivelink1" href="https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/samples/js-api-widget" title="https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/samples/js-api-widget"&gt;https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/samples/js-api-widget&lt;/A&gt;&amp;nbsp;to wrap the widget inside an ExB widget.&lt;/P&gt;&lt;P&gt;Let's assume the custom JS API widget is called Template and the build/transpiled files structure is:&lt;/P&gt;&lt;P&gt;- \Template.js&lt;/P&gt;&lt;P&gt;- \Template\TemplateViewModel.js&lt;/P&gt;&lt;P&gt;- \Template\nls\Template.js&lt;/P&gt;&lt;P&gt;- \Template\css\Template.css&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I followed these steps to add the widget into the ExB:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- added the custom widget's transpiled files into the ExB widget's lib folder (your-extensions\widgets\my-custom-widget\src\runtime\lib)&lt;/P&gt;&lt;P&gt;- imported the custom widget inside the ExB widget class (import Template from "./lib/Template")&lt;/P&gt;&lt;P&gt;- create the widget instance as showcased in the sample mentioned above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in runtime of the ExB application, loading the widget fails on systemjs.js&amp;nbsp;fetching nls/localization files&amp;nbsp;of&amp;nbsp;the custom JS API widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As my custom JS API 4.x widget&amp;nbsp;imports&amp;nbsp;its localization files using&amp;nbsp;dojo/i18n!./Template/nls/Template, this does not work while wrapping the widget inside an ExB widget.&lt;/P&gt;&lt;P&gt;What is the best practice to wrap custom JS API widgets inside an ExB widgets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matej&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 13:31:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308658#M478</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2020-05-20T13:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308659#M479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matej,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean using one of the JS API widgets or a custom widget that is written using the JS API? Did you convert your code to a React widget seems like it is a Dojo widget because of the system.js file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 18:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308659#M479</guid>
      <dc:creator>DavidMartinez</dc:creator>
      <dc:date>2020-05-21T18:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308660#M480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Yes, it is a custom widget written using the JS API.&lt;/P&gt;&lt;P&gt;As the JS API has its own widget framework, the idea is to encapsulate the custom functionality using&amp;nbsp;this framework&amp;nbsp;to use it in custom JS API apps outside the ExB scope. However, it would be handy to reuse this custom JS API widgets in ExB by wrapping them.&lt;/P&gt;&lt;P&gt;Do you say that using custom JS API widgets (no React, just JS API widget framework) in ExB is not supported, because of dojo?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matej&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 21:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308660#M480</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2020-05-21T21:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308661#M481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matej,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to be a react component-based widget to work in ExB.&amp;nbsp; You would have to take your JS API widget and take the output of our TypeScript transpile and then take that output and include/import it into an Experience Builder widget. Similar to the sample you pasted above from our SDK.&amp;nbsp; We import the types from the JS API, which allows us to use the widgets from JS API widgets in the builder and those they may not be included. For example, to use the editor widget you would do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #6688cc; background-color: #000c18; font-weight: normal; font-size: 20px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #225588;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #6688cc;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ffeebb; text-decoration: underline;"&gt;Editor&lt;/SPAN&gt;&lt;SPAN style="color: #6688cc;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #225588;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #6688cc;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #225588;"&gt;require&lt;/SPAN&gt;&lt;SPAN style="color: #6688cc;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #22aa44;"&gt;'esri/widgets/Editor'&lt;/SPAN&gt;&lt;SPAN style="color: #6688cc;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV style="background-color: #000c18; font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #9966b8;"&gt;const&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;newEditor&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #225588;"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #225588;"&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ffeebb; text-decoration: underline;"&gt;Editor&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #2277ff;"&gt;jmv&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;container&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;container&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 23:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308661#M481</guid>
      <dc:creator>DavidMartinez</dc:creator>
      <dc:date>2020-05-21T23:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308662#M482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correction above your TypeScript transpile.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 23:17:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308662#M482</guid>
      <dc:creator>DavidMartinez</dc:creator>
      <dc:date>2020-05-21T23:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308663#M483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that the widget for ExB has to be a React based widget. That's the reason why I wrap my custom JS API widget inside an ExB widget as showcased in&amp;nbsp;the sample from your SDK.&lt;/P&gt;&lt;P&gt;I took my custom JS API widget transpiled files (no webpack, just tsc compiler), placed them in my custom ExB widget folder (&lt;SPAN style="background-color: #ffffff;"&gt;your-extensions\widgets\&lt;STRONG&gt;my-custom-widget&lt;/STRONG&gt;\src\runtime\lib) and then imported my custom JS API widget inside the ExB widget:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #ffffff; background-color: #193549; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff9d00;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;Template&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff9d00;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #92fc79;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #a5ff90;"&gt;./lib/Template&lt;/SPAN&gt;&lt;SPAN style="color: #92fc79;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ffc600;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;template&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff9d00;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff9d00;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ffc600;"&gt;Template&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt;&amp;nbsp;&amp;nbsp;view&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #fb94ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;.mapView,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9effff;"&gt;&amp;nbsp;&amp;nbsp;container&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #9effff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #fb94ff;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #e1efff;"&gt;.apiWidgetContainer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #e1efff;"&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;When I run the ExB app in a runtime mode and open the widget, systemjs error is logged in a console as it fails to load a dojo/i18n module from my custom JS API widget. My custom JS API widget is using dojo/i18n module to load nls files (JS API widgets use dojo/i18n to manage localization files).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;So, I did another test.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I created second JS API widget without nls files (no dojo/i18n module) and wrapped it inside the ExB widget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Then, in a runtime of the ExB app, this error message is logged in a console: "WidgetWithoutI18n_1.default is not a constructor" (WidgetWithoutI18n is my custom JS API widget).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;It seems that ExB's module loader has some problems loading my custom JS API widget files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I attach my custom JS API widgets project, you can have a try.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;There are two widgets inside:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;- Template - widget with nls files&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;- WidgetWithoutI18n - no nls files&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Matej&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 08:17:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308663#M483</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2020-05-22T08:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308664#M484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matej,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will need some time (this week) to go through this specific example to see what is the best way to make this type of widget work in Experience Builder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 19:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308664#M484</guid>
      <dc:creator>DavidMartinez</dc:creator>
      <dc:date>2020-05-26T19:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308665#M485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I am looking forward to your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matej&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 12:36:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308665#M485</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2020-05-27T12:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308666#M486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matej&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 09:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308666#M486</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2020-06-09T09:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308667#M487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/2648"&gt;Matej Vrtich&lt;/A&gt;‌, apologize for the delay, one of us is going to look at it tomorrow.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 20:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308667#M487</guid>
      <dc:creator>DavidMartinez</dc:creator>
      <dc:date>2020-06-11T20:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308668#M488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/2648"&gt;Matej Vrtich&lt;/A&gt;‌ please check out this post from &lt;A href="https://community.esri.com/migrated-users/180371"&gt;Gavin Rehkemper&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/people/GRehkemper-esristaff/blog/2020/06/15/using-an-arcgis-javascript-api-style-widget-within-a-custom-experience-builder-widget"&gt;https://community.esri.com/people/GRehkemper-esristaff/blog/2020/06/15/using-an-arcgis-javascript-api-style-widget-within-a-custom-experience-builder-widget&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2020 20:09:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308668#M488</guid>
      <dc:creator>DavidMartinez</dc:creator>
      <dc:date>2020-06-15T20:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Wrapping custom js api widget as ExB widget fails on dojo/i18n</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308669#M489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/55346"&gt;David Martinez&lt;/A&gt;‌ and&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/2344"&gt;Gavin Rehkemper&lt;/A&gt;‌, thank you for your help in this.&lt;/P&gt;&lt;P&gt;The main issue in my case was missing the arcgis dependency in the&amp;nbsp;ExB widget's manifest file.&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;"dependency": ["jimu-arcgis"]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After adding this dependency, I can use&amp;nbsp;my custom js api widget in the ExB widget.&lt;/P&gt;&lt;P&gt;However, if I my custom js api widget uses the dojo/i18n module for localization, the ExB cannot load the localization files of the custom js api widget. The "Template" widget from the sample project attached at the beginning of this thread is an example of custom js api widget with localization files.&lt;/P&gt;&lt;P&gt;Anyway, I already rewritten my js api widget as ExB widget&amp;nbsp;and have to say, it was the best learning experience.&lt;/P&gt;&lt;P&gt;I'm just curious, if there is&amp;nbsp;some way to solve this without the rewrite.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matej&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2020 07:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/wrapping-custom-js-api-widget-as-exb-widget-fails/m-p/308669#M489</guid>
      <dc:creator>MatejVrtich</dc:creator>
      <dc:date>2020-06-18T07:47:08Z</dc:date>
    </item>
  </channel>
</rss>

