<?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: ArcGIS API 4.2 for JavaScript - Custom Widgets without TypeScript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212828#M19721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Rene, thanks for your reply. I hoped, that you will be the one who answer my question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have built our application since 4.0 was released. So we implement our widgets straight forward without TypeScript in the recommended way of ViewModels to the best of our knowledge and belief.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check your hint/link if we can take some advantages for our widget development and will give a reply here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2017 16:20:27 GMT</pubDate>
    <dc:creator>deleted-user-iPdcWUgWcsoy</dc:creator>
    <dc:date>2017-02-07T16:20:27Z</dc:date>
    <item>
      <title>ArcGIS API 4.2 for JavaScript - Custom Widgets without TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212825#M19718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perhaps an Esri staff could help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We develop a web application with&amp;nbsp;the&amp;nbsp;ArcGIS API 4.2 for JavaScript. There were many changes after the beta phase of 4.0 to the official release. We handled this issue with a couple of days development. After that there were a couple of changes in the update from 4.0 to 4.1. We handled that issue to. Now we updated to Version 4.2 and ran into some new problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have many custom widgets wich are created with the base class &lt;STRONG&gt;"esri/widgets/Widget"&lt;/STRONG&gt; (function "createSubclass") in the typical "amd-define-style". With the use of&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;esri/widgets/Widget" and the new possibilty of writing custom widgets with TypeScript, it seems to be a problem. After we change all the custom modules and use the base class&amp;nbsp;"&lt;SPAN&gt;esri/widgets/Widgette", no error occured and our application works fine again.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;So my important question is, is this base class&amp;nbsp;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;esri/widgets/Widgette"&lt;/STRONG&gt; save for updates and can we use it in future?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;A questions beside.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is there a main plan to support only custom widgets developed with TypeScript? No&amp;nbsp;"amd-define-style" anymore?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 09:35:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212825#M19718</guid>
      <dc:creator>deleted-user-iPdcWUgWcsoy</dc:creator>
      <dc:date>2017-01-31T09:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API 4.2 for JavaScript - Custom Widgets without TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212826#M19719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anybody share it with an Esri staff? I appreciate any help! This is really important for us and planning with the &lt;SPAN style="background-color: #ffffff;"&gt;ArcGIS API 4.2 for JavaScript.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 13:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212826#M19719</guid>
      <dc:creator>deleted-user-iPdcWUgWcsoy</dc:creator>
      <dc:date>2017-02-06T13:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API 4.2 for JavaScript - Custom Widgets without TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212827#M19720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;esri/widgets/Widgette&lt;/EM&gt;&lt;/SPAN&gt; module will be removed in a future release as more out-of-the-box widgets are transitioned to our Widget framework.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a guide on using &lt;A href="https://developers.arcgis.com/javascript/latest/guide/implementing-accessor/index.html"&gt;Accessor in both TypeScript and JavaScript&lt;/A&gt;. This does not apply to our Widget development due to the heavy use of JSX. You can technically write the HyperScript yourself, but it's cumbersome and not something we recommend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's important to note, the ViewModels of our widgets are what contains the business logic. So you can write your custom widgets in any manner you like, using a framework of your choosing, web components or plain JavaScript components.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:03:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212827#M19720</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2017-02-07T16:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API 4.2 for JavaScript - Custom Widgets without TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212828#M19721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Rene, thanks for your reply. I hoped, that you will be the one who answer my question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have built our application since 4.0 was released. So we implement our widgets straight forward without TypeScript in the recommended way of ViewModels to the best of our knowledge and belief.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check your hint/link if we can take some advantages for our widget development and will give a reply here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212828#M19721</guid>
      <dc:creator>deleted-user-iPdcWUgWcsoy</dc:creator>
      <dc:date>2017-02-07T16:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API 4.2 for JavaScript - Custom Widgets without TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212829#M19722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/odoe"&gt;odoe&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Ok, now here is my reply.&lt;/P&gt;&lt;P&gt;Unfortunately there is no comfortable way to develop our widgets without TypeScript. So we have to start nearly from scratch. Doh!&lt;/P&gt;&lt;P&gt;So I&amp;nbsp;have two questions.&lt;/P&gt;&lt;P&gt;1. Do you have a nice documentaion where I can find some hints to start with Widget development including Accessors/ViewModels from scratch? I'm really new to that stuff and I need to develop some widgets really soon. I read the documentation from the Esri site&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/guide/implementing-accessor/index.html"&gt;here&lt;/A&gt;,&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/guide/custom-widget/index.html"&gt;here&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-custom-recenter/index.html"&gt;here&lt;/A&gt;. I need some more information please.&lt;/P&gt;&lt;P&gt;2. How many &lt;STRONG&gt;main&lt;/STRONG&gt; changes will be happen in the future releases of the API? For every update we need several of days and weeks to get our application runnable again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 16:03:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212829#M19722</guid>
      <dc:creator>deleted-user-iPdcWUgWcsoy</dc:creator>
      <dc:date>2017-02-09T16:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API 4.2 for JavaScript - Custom Widgets without TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212830#M19723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Widget dev will be the biggest thing, that's why we didn't doc custom widget dev until now. There are going to be more changes and updates, but if we don't doc it, we don't recommend it.&lt;/P&gt;&lt;P&gt;In next the&amp;nbsp;release, we are also adding a guide to help new users set up a TypeScript development environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a demo app I put together that shows a Widget with a ViewModel. ViewModels are basically just extending Accessor. You could write a ViewModel without TypeScript and just implement Accessor in regular JavaScript.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/odoe/esrijs4-ts-demo" title="https://github.com/odoe/esrijs4-ts-demo"&gt;GitHub - odoe/esrijs4-ts-demo&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a sample widget in our Widget framework.&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://github.com/odoe/esrijs4-ts-demo/blob/master/app/widgets/summary.tsx" title="https://github.com/odoe/esrijs4-ts-demo/blob/master/app/widgets/summary.tsx"&gt;esrijs4-ts-demo/summary.tsx at master · odoe/esrijs4-ts-demo · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not comfortable using TypeScript for development, you don't need to use our widget framework. It doesn't provide any advantage or integration with the API in any way. It just happens to be what we use. We also need to provide the doc for other teams external to the JSAPI team that write widgets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I could have easily written this in regular JavaScript without our widget framework, just using a ViewModel that implements Accessor to watch for updates.&lt;/P&gt;&lt;P&gt;I have similar samples here in regular JavaScript.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/odoe/gen4" title="https://github.com/odoe/gen4"&gt;GitHub - odoe/gen4: Sample EsriJS 4 Application from generator-arcgis-js-app&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/odoe/esrijs4-vt-palette" title="https://github.com/odoe/esrijs4-vt-palette"&gt;GitHub - odoe/esrijs4-vt-palette: Demo app of using Color Palettes with Vector Tiles&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 16:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212830#M19723</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2017-02-09T16:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS API 4.2 for JavaScript - Custom Widgets without TypeScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212831#M19724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great thank you! I will check your samples but I think I can take advantage of it.&lt;/P&gt;&lt;P&gt;We are now to deep in this thing. So we will use it&amp;nbsp;like you do ;). Our plan is (and I startet that meanwhile) to use ViewModels written in JavaScript and use them in widgets written in TypeScript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I contact you for some more questions or should I open new separate threads?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 17:01:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-api-4-2-for-javascript-custom-widgets/m-p/212831#M19724</guid>
      <dc:creator>deleted-user-iPdcWUgWcsoy</dc:creator>
      <dc:date>2017-02-09T17:01:41Z</dc:date>
    </item>
  </channel>
</rss>

