<?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 Layer List View Model Widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-view-model-widget/m-p/1045973#M72460</link>
    <description>&lt;P&gt;Looking for a widget in&amp;nbsp; JSAPI 4.x that would allow me to pass a layer object and have a list view model displayed as a sidebar in my app. Kind of ArcGIS Workforce style, like the below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10610i9F79033D093C8D1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.PNG" alt="example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I came across&amp;nbsp;LayerList-LayerListViewModel in my search, but that seems to display a ListViewModel of all of the layers in the map, allowing the user to reorder those layers and toggle visibility and such. Similar to what I am looking for, but I just want to be able to pass a layer object and list the features within the given layer in a ListViewModel&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 15:53:06 GMT</pubDate>
    <dc:creator>JohnMDye</dc:creator>
    <dc:date>2021-04-12T15:53:06Z</dc:date>
    <item>
      <title>Layer List View Model Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-view-model-widget/m-p/1045973#M72460</link>
      <description>&lt;P&gt;Looking for a widget in&amp;nbsp; JSAPI 4.x that would allow me to pass a layer object and have a list view model displayed as a sidebar in my app. Kind of ArcGIS Workforce style, like the below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10610i9F79033D093C8D1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.PNG" alt="example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I came across&amp;nbsp;LayerList-LayerListViewModel in my search, but that seems to display a ListViewModel of all of the layers in the map, allowing the user to reorder those layers and toggle visibility and such. Similar to what I am looking for, but I just want to be able to pass a layer object and list the features within the given layer in a ListViewModel&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 15:53:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-view-model-widget/m-p/1045973#M72460</guid>
      <dc:creator>JohnMDye</dc:creator>
      <dc:date>2021-04-12T15:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List View Model Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-view-model-widget/m-p/1046149#M72472</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this &lt;A href="https://codepen.io/U_B_U/pen/yLgKJwb?editors=1000" target="_self"&gt;simple test app&lt;/A&gt; showcases what you are after. In this app, I have only one feature layer in the app and add the list of all features available right under the layer by setting &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#listItemCreatedFunction" target="_self"&gt;LayerList.listItemCreatedFunction.&amp;nbsp;&lt;/A&gt;You can click on the feature in layer list and it will only display that feature on map. We have several samples that shows how to use listItemCreatedFunction for LayerList.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can hide layers from a layer list by setting the layer's &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#listMode" target="_self"&gt;listMode&lt;/A&gt; property to &lt;EM&gt;hide&lt;/EM&gt; (all layers have this property.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 23:15:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-view-model-widget/m-p/1046149#M72472</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-04-12T23:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Layer List View Model Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-view-model-widget/m-p/1061406#M73271</link>
      <description>&lt;P&gt;Perfecto. Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 16:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-list-view-model-widget/m-p/1061406#M73271</guid>
      <dc:creator>JohnMDye</dc:creator>
      <dc:date>2021-05-25T16:05:55Z</dc:date>
    </item>
  </channel>
</rss>

