<?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: ESRI JS API 4.11: error in documentation of FeatureTemplates widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-4-11-error-in-documentation-of/m-p/290808#M26734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3036"&gt;Heather Gonzago&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're pointing to your own server (heatherg-2.esri.com) in your link.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2019 20:34:58 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2019-04-03T20:34:58Z</dc:date>
    <item>
      <title>ESRI JS API 4.11: error in documentation of FeatureTemplates widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-4-11-error-in-documentation-of/m-p/290806#M26732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I migrated from 4.10 to 4.11 an application using&amp;nbsp;FeatureTemplates widget&amp;nbsp; and noticed that the filterFunction callback parameter is not the one stated in the documentation anymore:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#filterFunction"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#filterFunction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 4.11, "filterFunction&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;takes&amp;nbsp;&lt;/SPAN&gt;a function which passes in an object containing a&lt;SPAN&gt;&amp;nbsp;label&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;property&amp;nbsp; of the&lt;SPAN&gt;&amp;nbsp;FeatureLayer and a templates property containing the templates of this layer".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/anon/pen/VNvQoo?&amp;amp;editable=true&amp;amp;editors=100"&gt;CodePen&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;SPAN&gt;Nicolas&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 09:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-4-11-error-in-documentation-of/m-p/290806#M26732</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2019-04-03T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI JS API 4.11: error in documentation of FeatureTemplates widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-4-11-error-in-documentation-of/m-p/290807#M26733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas,&lt;/P&gt;&lt;P&gt;Thanks for catching that. We updated `name` to `label` in this latest release but failed to update the code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need to update it to read,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; function myFilterFunction(filter) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; let containsName = filter.label.includes("animal"); &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; return containsName;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are interested in how this would work, check out the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-editor-configurable/index.html"&gt;Editor widget with configurations&amp;nbsp;&lt;/A&gt;sample. This uses a custom grouping function.&amp;nbsp; We'll fix this for our next SDK documentation update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 20:27:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-4-11-error-in-documentation-of/m-p/290807#M26733</guid>
      <dc:creator>HeatherGonzago</dc:creator>
      <dc:date>2019-04-03T20:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI JS API 4.11: error in documentation of FeatureTemplates widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-4-11-error-in-documentation-of/m-p/290808#M26734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3036"&gt;Heather Gonzago&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're pointing to your own server (heatherg-2.esri.com) in your link.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 20:34:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-4-11-error-in-documentation-of/m-p/290808#M26734</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-04-03T20:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI JS API 4.11: error in documentation of FeatureTemplates widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-4-11-error-in-documentation-of/m-p/290809#M26735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whoops, one of those days and one too many open tabs in my browser. Thanks, I've updated it to point to the Developers site.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 20:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-4-11-error-in-documentation-of/m-p/290809#M26735</guid>
      <dc:creator>HeatherGonzago</dc:creator>
      <dc:date>2019-04-03T20:47:38Z</dc:date>
    </item>
  </channel>
</rss>

