<?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: Help breaking down widget api references (widget.tsx) in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/help-breaking-down-widget-api-references-widget/m-p/1541492#M15029</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/727644"&gt;@TimWestern&lt;/a&gt;&amp;nbsp;.&amp;nbsp; This is very helpful in finding some of the nitty-gritty details that can't be found due to the lack of documentation.&amp;nbsp; Perhaps it's obvious how you found the reference to appActions under lib/app-actions.d.ts (given the similarities in names), but how would you find others, such as getAppStore?&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2024 16:33:08 GMT</pubDate>
    <dc:creator>PLadd</dc:creator>
    <dc:date>2024-09-23T16:33:08Z</dc:date>
    <item>
      <title>Help breaking down widget api references (widget.tsx)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/help-breaking-down-widget-api-references-widget/m-p/1538214#M14846</link>
      <description>&lt;P&gt;I'm trying to breakdown the coding in a widget.tsx file so I can customize to meet my own needs.&amp;nbsp; In the sample "control-the-widget-state" the first line in the widget.tsx file is this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;import { React, type AllWidgetProps, getAppStore, appActions, ReactRedux, type WidgetProps, WidgetManager, type IMState, WidgetState } from 'jimu-core'&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I understand what this line is doing but I can't find any documentation for some of these references.&amp;nbsp; Take "appActions" for example.&amp;nbsp; If I go to the jimu-core &lt;A href="https://developers.arcgis.com/experience-builder/api-reference/jimu-core/" target="_blank" rel="noopener"&gt;reference page here&lt;/A&gt;, there is no reference to a method, class, enumeration, or function called "appActions."&amp;nbsp; I also looked in the &lt;A href="https://react.dev/reference/react" target="_blank" rel="noopener"&gt;React API library&lt;/A&gt;&amp;nbsp; but found nothing.&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Where is the API documentation for some of this stuff?&amp;nbsp; It goes a long way in helping modify examples to meet my own needs.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Sep 2024 12:33:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/help-breaking-down-widget-api-references-widget/m-p/1538214#M14846</guid>
      <dc:creator>PLadd</dc:creator>
      <dc:date>2024-09-13T12:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help breaking down widget api references (widget.tsx)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/help-breaking-down-widget-api-references-widget/m-p/1538233#M14848</link>
      <description>&lt;P&gt;Honestly, inadequate documentation, especially on the developer side, is one of the biggest problems holding Experience Builder back. I have learned far more by reading through other people's code than I have the official documentation.&lt;/P&gt;&lt;P&gt;As for the appActions, it is an object with a number of methods for sending data between widgets. For example, this line of code can be used to close a Sidebar Widget.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; getAppStore().dispatch(appActions.widgetStatePropChange(`widget_${sidebarId}`, 'collapse', false))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 12:49:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/help-breaking-down-widget-api-references-widget/m-p/1538233#M14848</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-09-13T12:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help breaking down widget api references (widget.tsx)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/help-breaking-down-widget-api-references-widget/m-p/1538261#M14851</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;&amp;nbsp;is right, the documentation at times is not just sparse and limit, but silent on many of these tasks.&lt;BR /&gt;&lt;BR /&gt;I find it sometimes useful to go in with an IDE like Visual Studio (Community or Code), or WebStorm create the code, and than use the tools in them to trace the references down.&lt;BR /&gt;&lt;BR /&gt;That allows me to look at the code file it originates in, so that I can have some idea what its doing.&lt;BR /&gt;&lt;BR /&gt;SO appActions traces to a app-actions.d.ts file under /client/jimu-core/lib/app-acftions.d.ts&lt;BR /&gt;&lt;BR /&gt;However, I'll admit its not obvious if you search that file for appActions that what you are getting is not a 'class' but a module which contains a bunch of 'functions', so in a way the appActions name kind of acts like a namespace? for that file which defines that type.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 13:20:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/help-breaking-down-widget-api-references-widget/m-p/1538261#M14851</guid>
      <dc:creator>TimWestern</dc:creator>
      <dc:date>2024-09-13T13:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help breaking down widget api references (widget.tsx)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/help-breaking-down-widget-api-references-widget/m-p/1541492#M15029</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/727644"&gt;@TimWestern&lt;/a&gt;&amp;nbsp;.&amp;nbsp; This is very helpful in finding some of the nitty-gritty details that can't be found due to the lack of documentation.&amp;nbsp; Perhaps it's obvious how you found the reference to appActions under lib/app-actions.d.ts (given the similarities in names), but how would you find others, such as getAppStore?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 16:33:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/help-breaking-down-widget-api-references-widget/m-p/1541492#M15029</guid>
      <dc:creator>PLadd</dc:creator>
      <dc:date>2024-09-23T16:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help breaking down widget api references (widget.tsx)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/help-breaking-down-widget-api-references-widget/m-p/1547999#M15401</link>
      <description>&lt;P&gt;I may be wrong on this but I believe getAppStore is part of react-redux, which is bundled/imported in jimu-core:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimWestern_0-1728654449256.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117077i76C01CC5C3CFAC1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimWestern_0-1728654449256.png" alt="TimWestern_0-1728654449256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;the asterisk '*' means its importing all of it, but you won't find a react-redux folder under jimu-core&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimWestern_1-1728654567707.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117081i80EF2A7E14B57A19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimWestern_1-1728654567707.png" alt="TimWestern_1-1728654567707.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any library that you install with npm (or that is installed by default via imports via the Exb/Jimu/Esri libraries ) but aren't written ESRI will likely be found in the node_modules folder somewhere.&lt;BR /&gt;&lt;BR /&gt;of course, if you find it there, there's a possibility that library may have documentation outside of ESRI's site somewhere, so you can probably search for and find it.&lt;BR /&gt;&lt;BR /&gt;IIRC this one might be at:&amp;nbsp;&lt;A href="https://react-redux.js.org/" target="_blank"&gt;https://react-redux.js.org/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 13:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/help-breaking-down-widget-api-references-widget/m-p/1547999#M15401</guid>
      <dc:creator>TimWestern</dc:creator>
      <dc:date>2024-10-11T13:51:27Z</dc:date>
    </item>
  </channel>
</rss>

