<?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: Feature Table Widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-table-widget/m-p/1547592#M85860</link>
    <description>&lt;P&gt;When adding code to your question, please use the &lt;A href="https://community.esri.com/t5/community-help-documents/how-to-insert-code-in-your-post/ta-p/914552" target="_self"&gt;"Insert/edit code sample"&lt;/A&gt; button. Reading code in an image (especially as an attachment) is much more difficult.&lt;/P&gt;&lt;P&gt;You're setting the container to "tableDiv", which I'm guessing is the div below the map as in this &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-featuretable-map" target="_self"&gt;sample&lt;/A&gt;. Normally, you could add it into its own container, such as in the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-expand" target="_self"&gt;Expand sample&lt;/A&gt;. However, in my initial testing, this is only adding the table title to the Expand widget, so I'm not sure if this is possible or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;featureTable = new FeatureTable({
  view: view, // Required for feature highlight to work
  layer: featureLayer,
  header: false,
  visibleElements: {
    menuItems: meuItems
  },
  tableTemplate: template,
  //container: document.getElementById("tableDiv")
  container: document.createElement("div")
});&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_60e28d.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116979i6FA066E512FEF4F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_60e28d.png" alt="Snag_60e28d.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2024 14:20:20 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2024-10-10T14:20:20Z</dc:date>
    <item>
      <title>Feature Table Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-table-widget/m-p/1547389#M85854</link>
      <description>&lt;P&gt;I'm looking to integrate the attribute table of a layer into a webpage, but I've encountered an issue with the FeatureTable widget. It appears to create a standalone table by placing it in a container in the DOM, rather than allowing me to embed it directly in the expand widget&lt;/P&gt;&lt;P&gt;My goal is to use the Expand widget so that when I click on it, the attribute table opens. However, despite several attempts, the table consistently opens in the container (div container) instead of within the Expand widget.&lt;/P&gt;&lt;P&gt;Your help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 21:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-table-widget/m-p/1547389#M85854</guid>
      <dc:creator>BernardAbubakari</dc:creator>
      <dc:date>2024-10-09T21:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Table Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-table-widget/m-p/1547592#M85860</link>
      <description>&lt;P&gt;When adding code to your question, please use the &lt;A href="https://community.esri.com/t5/community-help-documents/how-to-insert-code-in-your-post/ta-p/914552" target="_self"&gt;"Insert/edit code sample"&lt;/A&gt; button. Reading code in an image (especially as an attachment) is much more difficult.&lt;/P&gt;&lt;P&gt;You're setting the container to "tableDiv", which I'm guessing is the div below the map as in this &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-featuretable-map" target="_self"&gt;sample&lt;/A&gt;. Normally, you could add it into its own container, such as in the &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-expand" target="_self"&gt;Expand sample&lt;/A&gt;. However, in my initial testing, this is only adding the table title to the Expand widget, so I'm not sure if this is possible or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;featureTable = new FeatureTable({
  view: view, // Required for feature highlight to work
  layer: featureLayer,
  header: false,
  visibleElements: {
    menuItems: meuItems
  },
  tableTemplate: template,
  //container: document.getElementById("tableDiv")
  container: document.createElement("div")
});&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_60e28d.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116979i6FA066E512FEF4F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_60e28d.png" alt="Snag_60e28d.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 14:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-table-widget/m-p/1547592#M85860</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-10-10T14:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Table Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-table-widget/m-p/1547602#M85862</link>
      <description>&lt;P&gt;Thanks for letting me know the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/community-help-documents/how-to-insert-code-in-your-post/ta-p/914552" target="_self"&gt;"Insert/edit code sample"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, that is the same results I am getting. I only get the title of the table when I click on the expand widget. The Expand widget and BasemapGallery widget works pretty well but the Expand and the FeatureTable widget is not.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 14:42:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-table-widget/m-p/1547602#M85862</guid>
      <dc:creator>BernardAbubakari</dc:creator>
      <dc:date>2024-10-10T14:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Table Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-table-widget/m-p/1600183#M86766</link>
      <description>&lt;P&gt;I was able to resolve only the Feature Table title showing by using the table's container as the content for the Expand widget instead. Then add height and width to the CSS for the table to fully display when expanded.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;#tableDiv {
	width: 1000px;
	height: 500px;
}

const featureTable = new FeatureTable({
	view: view,
	layer: featureLayer,
	container: "tableDiv",
});

const tableExpand = new Expand({
	expandIcon: "esri-icon-table",
	view: view,
	content: document.getElementById("tableDiv"),
});
view.ui.add(tableExpand, "top-right");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 21:45:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-table-widget/m-p/1600183#M86766</guid>
      <dc:creator>RachaelNGarrett</dc:creator>
      <dc:date>2025-03-27T21:45:52Z</dc:date>
    </item>
  </channel>
</rss>

