<?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: Where to put JavaScript into a custom widget? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503033#M13202</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/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be dumb question, but i've been searching google for a while now trying to figure out how to access the Widget.js code. Do I need to pull my web app down into ArcGIS Pro or something similar to get access to the source files of my web app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2020 19:42:06 GMT</pubDate>
    <dc:creator>BradMcKinney</dc:creator>
    <dc:date>2020-04-14T19:42:06Z</dc:date>
    <item>
      <title>Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503026#M13195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to turn this JS API sample into a Web AppBuilder custom widget with the WAB Developed Edition.&lt;/P&gt;&lt;P&gt;But not sure where to put the pieces from the sample script in the WAB widget&amp;nbsp;files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/map_xycoords.html" title="https://developers.arcgis.com/javascript/3/jssamples/map_xycoords.html"&gt;Show x,y coordinates | ArcGIS API for JavaScript 3.29&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 17:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503026#M13195</guid>
      <dc:creator>deleted-user-mgLAe3moQJvA</dc:creator>
      <dc:date>2019-09-11T17:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503027#M13196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;WAB already has a widget that does this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/guide/widget-coordinates.htm" title="https://developers.arcgis.com/web-appbuilder/guide/widget-coordinates.htm"&gt;Coordinate widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 19:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503027#M13196</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-09-11T19:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503028#M13197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but I am looking more for the process of turning this simple JS into a widget.&lt;/P&gt;&lt;P&gt;I've&amp;nbsp;changed the event trigger from mouse-move to click and want that to be the entire functionality of the widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The existing coordinate widget is way more than I need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 19:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503028#M13197</guid>
      <dc:creator>deleted-user-mgLAe3moQJvA</dc:creator>
      <dc:date>2019-09-11T19:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503029#M13198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;OK, it is not as simple as copy and paste the code into the correct file though. The logic of the widget (i.e. the javaScript code portion) goes in the Widget.js and the html portion of the sample goes in the Widget.html. WAB already has a map object so be sure not to try and use that portion of the code. The best starting place for creating widgets is the how to guide here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/sample-code/create-custom-in-panel-widget.htm" title="https://developers.arcgis.com/web-appbuilder/sample-code/create-custom-in-panel-widget.htm"&gt;Create a custom in-panel widget—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 20:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503029#M13198</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-09-11T20:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503030#M13199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I've been through that example. It runs through setting up a widget that writes some text to a panel.&lt;/P&gt;&lt;P&gt;Now I'm looking&amp;nbsp;for an example of how and where to add a map click event function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found this kind of helpful to navigate the widget files:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/andrescastillo08/blog/2019/07/24/how-to-customize-an-app-using-javascript-the-dom-chrome-devtools-and-chromes-debugger"&gt;https://community.esri.com/people/andrescastillo08/blog/2019/07/24/how-to-customize-an-app-using-javascript-the-dom-chrome-devtools-and-chromes-debugger&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 20:18:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503030#M13199</guid>
      <dc:creator>deleted-user-mgLAe3moQJvA</dc:creator>
      <dc:date>2019-09-11T20:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503031#M13200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Inside the Widget.js code you have access to the map using this.map, as shown in the Create custom in-panel widget code. So you just add your map click handler using this.map.on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 20:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503031#M13200</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-09-11T20:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503032#M13201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, that was the bit I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 21:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503032#M13201</guid>
      <dc:creator>deleted-user-mgLAe3moQJvA</dc:creator>
      <dc:date>2019-09-11T21:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503033#M13202</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/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be dumb question, but i've been searching google for a while now trying to figure out how to access the Widget.js code. Do I need to pull my web app down into ArcGIS Pro or something similar to get access to the source files of my web app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 19:42:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503033#M13202</guid>
      <dc:creator>BradMcKinney</dc:creator>
      <dc:date>2020-04-14T19:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503034#M13203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Are you working with an AGOL WAB app, Enterprise ArcGIS Portal, or WAB Dev?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 20:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503034#M13203</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-04-14T20:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503035#M13204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm currently working in AGOL WAB. I'm very new to ArcGIS, so I'm still trying to get a handle on all of the different products. I'm assuming I need to take my web app out of AGOL and into a more dev friendly environment.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 20:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503035#M13204</guid>
      <dc:creator>BradMcKinney</dc:creator>
      <dc:date>2020-04-14T20:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503036#M13205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct. You need to import your app into WAB Dev.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 20:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503036#M13205</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-04-14T20:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put JavaScript into a custom widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503037#M13206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it, thank you! Appreciate it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 20:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/where-to-put-javascript-into-a-custom-widget/m-p/503037#M13206</guid>
      <dc:creator>BradMcKinney</dc:creator>
      <dc:date>2020-04-14T20:35:43Z</dc:date>
    </item>
  </channel>
</rss>

