<?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: shared configurations and functions in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/shared-configurations-and-functions/m-p/775570#M2072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zorba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The one option for that would be to add that function to one of the js files that always gets added when using the app like MapManager.js or configloader.js that way you can call MapManager.getInstance().yourFunctionName()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2018 15:11:40 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-10-08T15:11:40Z</dc:date>
    <item>
      <title>shared configurations and functions</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/shared-configurations-and-functions/m-p/775567#M2069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is a general, best practices question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best approach to sharing configurations between widgets? Let's say I have some configurations that several widgets need to access. Instead of repeating the configurations in each widgets own config.json file, it seems better to place them in a shared or common config.json file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise for utility type functions that could be used by multiple widgets. Is there an approach others have used for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 20:11:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/shared-configurations-and-functions/m-p/775567#M2069</guid>
      <dc:creator>ZorbaConlen1</dc:creator>
      <dc:date>2018-10-05T20:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: shared configurations and functions</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/shared-configurations-and-functions/m-p/775568#M2070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would add it to the apps main config file each widget has access to the this.appConfig variable.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 20:14:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/shared-configurations-and-functions/m-p/775568#M2070</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-10-05T20:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: shared configurations and functions</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/shared-configurations-and-functions/m-p/775569#M2071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert. Sounds good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about the second part of my question? What if you have several widgets that can use the same function. Is there a standard way to handle that. I'd like to avoid redundantly adding that same function to each widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 15:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/shared-configurations-and-functions/m-p/775569#M2071</guid>
      <dc:creator>ZorbaConlen1</dc:creator>
      <dc:date>2018-10-08T15:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: shared configurations and functions</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/shared-configurations-and-functions/m-p/775570#M2072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zorba,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The one option for that would be to add that function to one of the js files that always gets added when using the app like MapManager.js or configloader.js that way you can call MapManager.getInstance().yourFunctionName()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 15:11:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/shared-configurations-and-functions/m-p/775570#M2072</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-10-08T15:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: shared configurations and functions</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/shared-configurations-and-functions/m-p/775571#M2073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great. Thanks for the suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 15:50:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/shared-configurations-and-functions/m-p/775571#M2073</guid>
      <dc:creator>ZorbaConlen1</dc:creator>
      <dc:date>2018-10-08T15:50:53Z</dc:date>
    </item>
  </channel>
</rss>

